Fix
parent
98a7ada0b0
commit
2e4bd17052
|
|
@ -35,6 +35,9 @@ return new class extends Migration
|
|||
$table->integer('pm10')->nullable()->comment('PM10浓度 (单位: ug/m3)');
|
||||
$table->timestamp('monitored_at')->comment('监控时间(小时)');
|
||||
$table->timestamps();
|
||||
|
||||
$table->index('agricultural_base_id');
|
||||
$table->unique(['device_id', 'monitored_at']);
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue