Add patch to rename user_roles_id to roles_id, update related classes

This commit is contained in:
DariusIII
2018-08-01 10:46:21 +02:00
parent f80408a50e
commit 00f09c4a6e
10 changed files with 22 additions and 17 deletions
@@ -18,10 +18,10 @@ class CreateRoleExcludedCategoriesTable extends Migration {
$table->charset = 'utf8';
$table->collation = 'utf8_unicode_ci';
$table->increments('id');
$table->integer('user_roles_id');
$table->integer('roles_id');
$table->integer('categories_id')->nullable();
$table->timestamps();
$table->unique(['user_roles_id','categories_id'], 'ix_roleexcat_rolecat');
$table->unique(['roles_id','categories_id'], 'ix_roleexcat_rolecat');
});
}