From 735eab1b279e4b21e6216ffb4d4861c486155d18 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A6=99=E7=A0=81=E7=94=9F=E8=8A=B1?= <18523774412@qq.com> Date: Sat, 1 Jul 2023 11:24:19 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20user=20=E8=A1=A8=E7=9A=84=20group?= =?UTF-8?q?=5Fid=20=E5=AD=97=E6=AE=B5=E8=AE=BE=E7=BD=AE=E9=BB=98=E8=AE=A4?= =?UTF-8?q?=E5=80=BC=E4=B8=BA=200?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- database/migrations/20230620180908_install.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/database/migrations/20230620180908_install.php b/database/migrations/20230620180908_install.php index 14c21a89..ed7c478d 100644 --- a/database/migrations/20230620180908_install.php +++ b/database/migrations/20230620180908_install.php @@ -425,7 +425,7 @@ class Install extends Migrator 'collation' => 'utf8mb4_unicode_ci', ]); $table->addColumn('id', 'integer', ['comment' => 'ID', 'signed' => false, 'identity' => true]) - ->addColumn('group_id', 'integer', ['comment' => '分组ID', 'signed' => false]) + ->addColumn('group_id', 'integer', ['comment' => '分组ID', 'default' => 0, 'signed' => false]) ->addColumn('username', 'string', ['limit' => 32, 'default' => '', 'comment' => '用户名']) ->addColumn('nickname', 'string', ['limit' => 50, 'default' => '', 'comment' => '昵称']) ->addColumn('email', 'string', ['limit' => 50, 'default' => '', 'comment' => '邮箱'])