From 3354392524f4dd98ccbbd558bd246e0502936d44 Mon Sep 17 00:00:00 2001 From: dataprince Date: Mon, 16 Oct 2023 20:23:34 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E7=94=A8=E6=88=B7=E8=A1=A8?= =?UTF-8?q?=E7=9A=84user=5Ftype=E5=AD=97=E6=AE=B5=E7=BB=93=E6=9E=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sql/update.sql | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sql/update.sql b/sql/update.sql index c3a750d..6db2a7a 100644 --- a/sql/update.sql +++ b/sql/update.sql @@ -558,4 +558,8 @@ ALTER TABLE `sys_dept` ALTER TABLE `sys_user` CHANGE COLUMN `user_id` `user_id` BIGINT(19) NOT NULL COMMENT '用户ID' FIRST; +ALTER TABLE `sys_user` + CHANGE COLUMN `user_type` `user_type` VARCHAR(10) NULL DEFAULT 'sys_user' COMMENT '用户类型(sys_user系统用户、app_user App用户)' COLLATE 'utf8mb4_bin' AFTER `nick_name`; +UPDATE `sys_user` SET `user_type`="sys_user"; +