修改用户表的user_type字段结构
This commit is contained in:
parent
1fe08a0945
commit
3354392524
@ -558,4 +558,8 @@ ALTER TABLE `sys_dept`
|
|||||||
ALTER TABLE `sys_user`
|
ALTER TABLE `sys_user`
|
||||||
CHANGE COLUMN `user_id` `user_id` BIGINT(19) NOT NULL COMMENT '用户ID' FIRST;
|
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";
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user