mirror of
https://github.com/brunofontes/shareit.git
synced 2024-11-23 20:10:52 +00:00
Fixing item_user migration primary keys
I had included item_id and user_id as primary keys to avoid duplications but the command line to attach I am using does not duplicate. Not only that, I got an error during migration of Multiple primary keys.
This commit is contained in:
parent
d8847256fd
commit
4b9ac0c133
@ -26,7 +26,6 @@ class CreateItemsTable extends Migration
|
|||||||
$table->increments('id');
|
$table->increments('id');
|
||||||
$table->integer('item_id');
|
$table->integer('item_id');
|
||||||
$table->integer('user_id');
|
$table->integer('user_id');
|
||||||
$table->primary(['item_id', 'user_id']);
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user