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:
Bruno F. Fontes 2018-09-16 19:29:14 -03:00
parent d8847256fd
commit 4b9ac0c133

View File

@ -26,7 +26,6 @@ class CreateItemsTable extends Migration
$table->increments('id');
$table->integer('item_id');
$table->integer('user_id');
$table->primary(['item_id', 'user_id']);
});
}