mirror of
https://github.com/MrUnknownDE/panel.git
synced 2026-04-19 06:43:45 +02:00
db: add User has one AdminRole relation
This commit is contained in:
@@ -14,7 +14,7 @@ class CreateAdminRolesTable extends Migration
|
||||
public function up()
|
||||
{
|
||||
Schema::create('admin_roles', function (Blueprint $table) {
|
||||
$table->integer('id')->unsigned();
|
||||
$table->increments('id');
|
||||
$table->string('name', 64);
|
||||
$table->string('description', 255)->nullable();
|
||||
$table->integer('sort_id');
|
||||
|
||||
@@ -29,7 +29,6 @@ class AddAdminRoleIdColumnToUsersTable extends Migration
|
||||
{
|
||||
Schema::table('users', function (Blueprint $table) {
|
||||
$table->dropForeign(['admin_role_id']);
|
||||
$table->dropIndex('admin_role_id');
|
||||
$table->dropColumn('admin_role_id');
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user