mirror of
https://github.com/brunofontes/shareit.git
synced 2025-02-22 15:14:45 +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
78330f4d57
commit
4c4672d6f4
@ -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