mirror of
https://github.com/cp6/my-idlers.git
synced 2024-11-16 23:42:32 +01:00
Updated labels_assigned migration for unique key index
Updated labels_assigned migration for unique key index
This commit is contained in:
parent
85e4024258
commit
b7ce9b7402
@ -14,8 +14,9 @@ class CreateLabelsAssignedTable extends Migration
|
|||||||
public function up()
|
public function up()
|
||||||
{
|
{
|
||||||
Schema::create('labels_assigned', function (Blueprint $table) {
|
Schema::create('labels_assigned', function (Blueprint $table) {
|
||||||
$table->char('label_id', 8)->unique();
|
$table->char('label_id', 8);
|
||||||
$table->char('service_id', 8)->unique();
|
$table->char('service_id', 8);
|
||||||
|
$table->unique(['label_id','service_id'], 'uni');
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user