升级数据库表结构
This commit is contained in:
parent
e6679d97eb
commit
a73f311afc
@ -531,3 +531,8 @@ DROP TABLE IF EXISTS QRTZ_CALENDARS;
|
|||||||
UPDATE sys_dict_data SET `dict_type`="sys_user_gender" WHERE `dict_type`="sys_user_sex";
|
UPDATE sys_dict_data SET `dict_type`="sys_user_gender" WHERE `dict_type`="sys_user_sex";
|
||||||
UPDATE sys_dict_type SET `dict_type`="sys_user_gender" WHERE `dict_type`="sys_user_sex";
|
UPDATE sys_dict_type SET `dict_type`="sys_user_gender" WHERE `dict_type`="sys_user_sex";
|
||||||
UPDATE gen_table_column SET `dict_type`="sys_user_gender" WHERE `dict_type`="sys_user_sex";
|
UPDATE gen_table_column SET `dict_type`="sys_user_gender" WHERE `dict_type`="sys_user_sex";
|
||||||
|
-- 修改用户表"sex"字段为"gender":
|
||||||
|
ALTER TABLE `sys_user` CHANGE COLUMN `sex` `gender` CHAR(1) NULL DEFAULT '0' COMMENT '用户性别(0男 1女 2未知)' COLLATE 'utf8mb4_bin' AFTER `phonenumber`;
|
||||||
|
|
||||||
|
ALTER TABLE `sys_dept`
|
||||||
|
CHANGE COLUMN `del_flag` `del_flag` CHAR(1) NULL DEFAULT '0' COMMENT '删除标志(0代表存在 1代表删除)' COLLATE 'utf8mb4_bin' AFTER `status`;
|
||||||
|
Loading…
Reference in New Issue
Block a user