|
|
@@ -19,10 +19,7 @@ class AddMonitorDefaultStationAndStationHardwareIdColumn extends Migration
|
|
|
$table->string('remark')->nullable();
|
|
|
});
|
|
|
$stationType= StationType::query()->firstOrCreate(['name'=>'料箱监视器']);
|
|
|
- $station= Station::query()->firstOrCreate(['name'=>'料箱监视器01']);
|
|
|
- $station['sequence']=1;
|
|
|
- $station['station_type_id']=$stationType['id'];
|
|
|
- $station->save();
|
|
|
+ Station::query()->firstOrCreate(['name'=>'料箱监视器01','sequence'=>1,'station_type_id'=>$stationType['id']]);
|
|
|
}
|
|
|
/**
|
|
|
* Reverse the migrations.
|