From dcf79d91192e821fe7b1e62260dba82eede64d9f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=96=AF=E7=8B=82=E7=9A=84=E7=8B=AE=E5=AD=90li?= <15040126243@163.com> Date: Mon, 17 Jan 2022 18:32:02 +0800 Subject: [PATCH] =?UTF-8?q?add=20=E5=A2=9E=E5=8A=A0=203.X=20update=204.0?= =?UTF-8?q?=20=E6=9B=B4=E6=96=B0sql?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- script/sql/{ry_20210908.sql => ry_vue_4.0.sql} | 0 script/sql/update/update-3.X-4.0.sql | 6 ++++++ 2 files changed, 6 insertions(+) rename script/sql/{ry_20210908.sql => ry_vue_4.0.sql} (100%) create mode 100644 script/sql/update/update-3.X-4.0.sql diff --git a/script/sql/ry_20210908.sql b/script/sql/ry_vue_4.0.sql similarity index 100% rename from script/sql/ry_20210908.sql rename to script/sql/ry_vue_4.0.sql diff --git a/script/sql/update/update-3.X-4.0.sql b/script/sql/update/update-3.X-4.0.sql new file mode 100644 index 00000000..de411784 --- /dev/null +++ b/script/sql/update/update-3.X-4.0.sql @@ -0,0 +1,6 @@ +ALTER TABLE `sys_user` MODIFY COLUMN `user_type` varchar(10) DEFAULT 'sys_user' COMMENT '用户类型(sys_user系统用户)' AFTER `nick_name`; + +UPDATE `sys_user` SET `nick_name` = '疯狂的狮子Li', `user_type` = 'sys_user', `email` = 'crazyLionLi@163.com' WHERE `user_id` = 1; +UPDATE `sys_user` SET `user_name` = 'lionli', `nick_name` = '疯狂的狮子Li', `user_type` = 'sys_user', `email` = 'crazyLionLi@163.com' WHERE `user_id` = 2; +UPDATE `sys_user` SET `user_type` = 'sys_user' WHERE `user_id` = 3; +UPDATE `sys_user` SET `user_type` = 'sys_user' WHERE `user_id` = 4;