Files
ballcat/doc/update_sql/0.0.3.sql
2020-09-18 17:00:27 +08:00

17 lines
1.2 KiB
SQL
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

-- 逻辑删除字段修改为bigint
ALTER TABLE `ballcat`.`sys_user`
MODIFY COLUMN `deleted` bigint(20) NULL DEFAULT NULL COMMENT '逻辑删除标识,未删除为 0已删除为删除时间' AFTER `type`;
ALTER TABLE `ballcat`.`sys_role`
MODIFY COLUMN `deleted` bigint(20) NULL DEFAULT NULL COMMENT '逻辑删除标识,未删除为 0已删除为删除时间' AFTER `note`;
ALTER TABLE `ballcat`.`sys_permission`
MODIFY COLUMN `deleted` bigint(20) NULL DEFAULT NULL COMMENT '逻辑删除标识,未删除为 0已删除为删除时间' AFTER `type`;
ALTER TABLE `ballcat`.`sys_dict`
MODIFY COLUMN `deleted` bigint(20) NULL DEFAULT NULL COMMENT '逻辑删除标识,未删除为 0已删除为删除时间' AFTER `hash_code`;
ALTER TABLE `ballcat`.`sys_dict_item`
MODIFY COLUMN `deleted` bigint(20) NULL DEFAULT NULL COMMENT '逻辑删除标识,未删除为 0已删除为删除时间' AFTER `remarks`;
ALTER TABLE `ballcat`.`sys_config`
ADD COLUMN `deleted` bigint(20) NULL COMMENT '逻辑删除标识,未删除为 0已删除为删除时间' AFTER `description`;
-- 系统角色新增类型字段
ALTER TABLE `ballcat`.`sys_role`
ADD COLUMN `type` tinyint(1) NULL DEFAULT 2 COMMENT '角色类型1系统角色 2业务角色' AFTER `code`;