mirror of https://gitee.com/stylefeng/roses
【8.1.0】【role】初始化角色关联公司的sql
parent
2f055e66c7
commit
a196bdc0fd
|
@ -0,0 +1,7 @@
|
|||
ALTER TABLE `sys_role`
|
||||
DROP COLUMN `role_system_flag`,
|
||||
ADD COLUMN `role_type` tinyint NOT NULL DEFAULT 10 COMMENT '角色类型:10-系统角色,20-公司角色' AFTER `remark`,
|
||||
ADD COLUMN `role_company_id` bigint NULL COMMENT '角色所属公司id,当角色类型为20时传此值' AFTER `role_type`;
|
||||
|
||||
ALTER TABLE `sys_user_role`
|
||||
ADD COLUMN `role_company_id` bigint NULL COMMENT '角色所属公司id' AFTER `role_id`;
|
Loading…
Reference in New Issue