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()
|
||||
{
|
||||
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…
Reference in New Issue
Block a user