Forráskód Böngészése

弥被stationType的迁移数据

LD 5 éve
szülő
commit
ba413c33c6

+ 4 - 3
database/migrations/2020_11_30_140957_create_station_types_table.php

@@ -1,5 +1,6 @@
 <?php
 
+use App\StationType;
 use Illuminate\Database\Migrations\Migration;
 use Illuminate\Database\Schema\Blueprint;
 use Illuminate\Support\Facades\Schema;
@@ -18,9 +19,9 @@ class CreateStationTypesTable extends Migration
             $table->string('name')->index();
             $table->timestamps();
         });
-        \App\StationType::query()->firstOrCreate(['name'=>'料箱出货口']);
-        \App\StationType::query()->firstOrCreate(['name'=>'料箱入货口']);
-        \App\StationType::query()->firstOrCreate(['name'=>'料箱监视器']);
+        StationType::query()->firstOrCreate(['name'=>'料箱出货口']);
+        StationType::query()->firstOrCreate(['name'=>'料箱入货口']);
+        StationType::query()->firstOrCreate(['name'=>'料箱监视器']);
     }
 
     /**

+ 0 - 2
database/migrations/2021_05_31_140957_create_station_types2_table.php

@@ -2,8 +2,6 @@
 
 use App\StationType;
 use Illuminate\Database\Migrations\Migration;
-use Illuminate\Database\Schema\Blueprint;
-use Illuminate\Support\Facades\Schema;
 
 class CreateStationTypes2Table extends Migration
 {