Update
parent
d8d3573860
commit
606b688163
|
|
@ -27,7 +27,7 @@ return new class extends Migration
|
||||||
$table->timestamps();
|
$table->timestamps();
|
||||||
|
|
||||||
$table->index('agricultural_base_id');
|
$table->index('agricultural_base_id');
|
||||||
$table->unique(['device_id', 'monitored_at']);
|
$table->unique(['device_id', 'monitored_at'], 'uq_device_id_monitored_at');
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -27,7 +27,7 @@ return new class extends Migration
|
||||||
$table->timestamps();
|
$table->timestamps();
|
||||||
|
|
||||||
$table->index('agricultural_base_id');
|
$table->index('agricultural_base_id');
|
||||||
$table->unique(['device_id', 'monitored_at']);
|
$table->unique(['device_id', 'monitored_at'], 'uq_device_id_monitored_at');
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -27,7 +27,7 @@ return new class extends Migration
|
||||||
$table->timestamps();
|
$table->timestamps();
|
||||||
|
|
||||||
$table->index('agricultural_base_id');
|
$table->index('agricultural_base_id');
|
||||||
$table->unique(['device_id', 'monitored_at']);
|
$table->unique(['device_id', 'monitored_at'], 'uq_device_id_monitored_at');
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -33,7 +33,7 @@ return new class extends Migration
|
||||||
$table->timestamps();
|
$table->timestamps();
|
||||||
|
|
||||||
$table->index('agricultural_base_id');
|
$table->index('agricultural_base_id');
|
||||||
$table->unique(['device_id', 'monitored_at']);
|
$table->unique(['device_id', 'monitored_at'], 'uq_device_id_monitored_at');
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue