Commit c9ab930b authored by yinxiaoling's avatar yinxiaoling

uuid类型中划线问题

parent d366f7d8
...@@ -18,7 +18,7 @@ class DatabaseSeeder extends Seeder ...@@ -18,7 +18,7 @@ class DatabaseSeeder extends Seeder
if(!Schema::hasTable($tableName)){ if(!Schema::hasTable($tableName)){
Schema::create($tableName, function (Blueprint $table){ Schema::create($tableName, function (Blueprint $table){
$table->increments('id'); $table->increments('id');
$table->uuid('strategy_sn')->comment('sn编号'); //sn编号 $table->string('strategy_sn',100)->comment('sn编号'); //sn编号
$table->string('strategy_name',50)->comment('策略名称'); $table->string('strategy_name',50)->comment('策略名称');
$table->string('user_sn',100)->comment('用户sn'); $table->string('user_sn',100)->comment('用户sn');
$table->string('user_name',50)->comment('用户名'); $table->string('user_name',50)->comment('用户名');
...@@ -65,7 +65,7 @@ class DatabaseSeeder extends Seeder ...@@ -65,7 +65,7 @@ class DatabaseSeeder extends Seeder
if(!Schema::hasTable($tableName)){ if(!Schema::hasTable($tableName)){
Schema::create($tableName, function (Blueprint $table){ Schema::create($tableName, function (Blueprint $table){
$table->increments('id'); $table->increments('id');
$table->uuid('strategy_sn')->comment('策略sn编号'); //sn编号 $table->string('strategy_sn',100)->comment('策略sn编号'); //sn编号
$table->string('name',50)->nullable()->comment('姓名'); $table->string('name',50)->nullable()->comment('姓名');
$table->date('duty_date')->nullable()->comment('值班日期(年月日)'); $table->date('duty_date')->nullable()->comment('值班日期(年月日)');
$table->timestamp('import_date')->nullable()->comment('导入日期(年-月-日 时:分:秒)'); $table->timestamp('import_date')->nullable()->comment('导入日期(年-月-日 时:分:秒)');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment