diff --git a/database/migrations/20190508100337_admin_auth_group_access.php b/database/migrations/20190508100337_admin_auth_group_access.php index d52c5b3..10bbc3d 100644 --- a/database/migrations/20190508100337_admin_auth_group_access.php +++ b/database/migrations/20190508100337_admin_auth_group_access.php @@ -32,6 +32,7 @@ class AdminAuthGroupAccess extends Migrator { $table->addColumn('uid', 'integer', [ 'limit' => 11, 'default' => 0, + 'signed' => false, 'comment' => '' ])->addColumn('groupId', 'string', [ 'limit' => 255, diff --git a/database/migrations/20190508101122_admin_auth_rule.php b/database/migrations/20190508101122_admin_auth_rule.php new file mode 100644 index 0000000..264ac7b --- /dev/null +++ b/database/migrations/20190508101122_admin_auth_rule.php @@ -0,0 +1,54 @@ +table('admin_auth_rule', [ + 'comment' => '权限细节' + ])->setCollation('utf8mb4_general_ci'); + $table->addColumn('url', 'string', [ + 'limit' => 80, + 'default' => '', + 'comment' => '规则唯一标识' + ])->addColumn('groupId', 'integer', [ + 'limit' => 11, + 'default' => 0, + 'signed' => false, + 'comment' => '权限所属组的ID' + ])->addColumn('auth', 'integer', [ + 'limit' => 11, + 'default' => 0, + 'signed' => false, + 'comment' => '权限数值' + ])->addColumn('status', 'integer', [ + 'limit' => 1, + 'default' => 1, + 'comment' => '状态:为1正常,为0禁用' + ])->create(); + + $table->changeColumn('id', 'integer', ['signed' => false]); + } +}