diff --git a/database/migrations/20190425073802_admin_app.php b/database/migrations/20190425073802_admin_app.php index fc48922..e775c5b 100644 --- a/database/migrations/20190425073802_admin_app.php +++ b/database/migrations/20190425073802_admin_app.php @@ -63,6 +63,6 @@ class AdminApp extends Migrator { 'null' => true ])->addIndex(['app_id'], ['unique' => true])->create(); - $table->changeColumn('id', null, ['signed' => false]); + $table->changeColumn('id', 'integer', ['signed' => false]); } } diff --git a/database/migrations/20190425094427_admin_app_group.php b/database/migrations/20190425094427_admin_app_group.php index 6314902..11c5074 100644 --- a/database/migrations/20190425094427_admin_app_group.php +++ b/database/migrations/20190425094427_admin_app_group.php @@ -45,6 +45,6 @@ class AdminAppGroup extends Migrator { 'comment' => '组标识' ])->create(); - $table->changeColumn('id', null, ['signed' => false]); + $table->changeColumn('id', 'integer', ['signed' => false]); } } diff --git a/database/migrations/20190508070533_admin_auth_group.php b/database/migrations/20190508070533_admin_auth_group.php new file mode 100644 index 0000000..8598c6f --- /dev/null +++ b/database/migrations/20190508070533_admin_auth_group.php @@ -0,0 +1,47 @@ +table('admin_auth_group', [ + 'comment' => '权限组' + ])->setCollation('utf8mb4_general_ci'); + $table->addColumn('name', 'string', [ + 'limit' => 50, + 'default' => '', + 'comment' => '组名称' + ])->addColumn('description', 'text', [ + 'comment' => '组描述', + 'null' => true + ])->addColumn('status', 'integer', [ + 'limit' => 2, + 'default' => 1, + 'comment' => '组状态:为1正常,为0禁用' + ])->create(); + + $table->changeColumn('id', 'integer', ['signed' => false]); + } +}