| 12345678910111213141516171819202122232425262728293031323334 |
- <?php
- use Illuminate\Database\Migrations\Migration;
- use Illuminate\Database\Schema\Blueprint;
- use Illuminate\Support\Facades\Schema;
- class CreateSsConfigTable extends Migration
- {
- /**
- * Run the migrations.
- *
- * @return void
- */
- public function up()
- {
- Schema::create('ss_config', function (Blueprint $table) {
- $table->increments('id');
- $table->string('name', 50)->comment('配置名');
- $table->boolean('type')->default(1)->comment('类型:1-加密方式、2-协议、3-混淆');
- $table->boolean('is_default')->default(0)->comment('是否默认:0-不是、1-是');
- $table->unsignedTinyInteger('sort')->default(0)->comment('排序:值越大排越前');
- });
- }
- /**
- * Reverse the migrations.
- *
- * @return void
- */
- public function down()
- {
- Schema::dropIfExists('ss_config');
- }
- }
|