2017_12_29_140026_create_ss_config_table.php 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. <?php
  2. use Illuminate\Support\Facades\Schema;
  3. use Illuminate\Database\Schema\Blueprint;
  4. use Illuminate\Database\Migrations\Migration;
  5. class CreateSsConfigTable extends Migration
  6. {
  7. /**
  8. * Run the migrations.
  9. *
  10. * @return void
  11. */
  12. public function up()
  13. {
  14. Schema::create('ss_config', function (Blueprint $table) {
  15. $table->engine = 'InnoDB';
  16. $table->charset = 'utf8mb4';
  17. $table->collation = 'utf8mb4_unicode_ci';
  18. $table->increments('id');
  19. $table->string('name', 50)->default('')->comment('配置名');
  20. $table->tinyInteger('type')->default('1')->comment('类型:1-加密方式、2-协议、3-混淆');
  21. $table->tinyInteger('is_default')->default('0')->comment('是否默认:0-不是、1-是');
  22. $table->integer('sort')->default('0')->comment('排序:值越大排越前');
  23. });
  24. }
  25. /**
  26. * Reverse the migrations.
  27. *
  28. * @return void
  29. */
  30. public function down()
  31. {
  32. Schema::dropIfExists('ss_config');
  33. }
  34. }