mirror of
https://github.com/cp6/my-idlers.git
synced 2025-04-19 09:38:36 +00: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
1 changed files with 3 additions and 2 deletions
|
@ -14,8 +14,9 @@ class CreateLabelsAssignedTable extends Migration
|
|||
public function up()
|
||||
{
|
||||
Schema::create('labels_assigned', function (Blueprint $table) {
|
||||
$table->char('label_id', 8)->unique();
|
||||
$table->char('service_id', 8)->unique();
|
||||
$table->char('label_id', 8);
|
||||
$table->char('service_id', 8);
|
||||
$table->unique(['label_id','service_id'], 'uni');
|
||||
});
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue