diff --git a/database/migrations/20190508100337_admin_auth_group_access.php b/database/migrations/20190508100337_admin_auth_group_access.php new file mode 100644 index 0000000..d52c5b3 --- /dev/null +++ b/database/migrations/20190508100337_admin_auth_group_access.php @@ -0,0 +1,44 @@ +table('admin_auth_group_access', [ + 'comment' => '用户和组的对应关系' + ])->setCollation('utf8mb4_general_ci'); + $table->addColumn('uid', 'integer', [ + 'limit' => 11, + 'default' => 0, + 'comment' => '' + ])->addColumn('groupId', 'string', [ + 'limit' => 255, + 'default' => '', + 'comment' => '' + ])->addIndex(['uid'])->addIndex(['groupId'])->create(); + + $table->changeColumn('id', 'integer', ['signed' => false]); + } +}