From 963f57d7b9edf5c1f5d7de72b8da9167dc9f32e0 Mon Sep 17 00:00:00 2001 From: zhaoxiang Date: Wed, 8 May 2019 18:10:44 +0800 Subject: [PATCH] =?UTF-8?q?modified=20=E6=B7=BB=E5=8A=A0=E6=95=B0=E6=8D=AE?= =?UTF-8?q?=E5=BA=93=E8=BF=81=E7=A7=BB=E8=84=9A=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...20190508100337_admin_auth_group_access.php | 44 +++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 database/migrations/20190508100337_admin_auth_group_access.php 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]); + } +}