mirror of https://gitee.com/stylefeng/roses
【8.0】【tenant】更新默认租户的数据
parent
38f39b0aef
commit
4fd0a89dc5
|
@ -16,4 +16,13 @@ ALTER TABLE `sys_role_menu_options` DROP COLUMN `tenant_id`;
|
|||
|
||||
ALTER TABLE `sys_hr_org_approver` DROP COLUMN `tenant_id`;
|
||||
|
||||
ALTER TABLE `sys_portal_user_app` DROP COLUMN `tenant_id`;
|
||||
ALTER TABLE `sys_portal_user_app` DROP COLUMN `tenant_id`;
|
||||
|
||||
-- 增加默认租户数据,默认租户id是1
|
||||
update sys_user set tenant_id = 1 where tenant_id is null;
|
||||
|
||||
update sys_role set tenant_id = 1 where tenant_id is null;
|
||||
|
||||
update sys_hr_position set tenant_id = 1 where tenant_id is null;
|
||||
|
||||
update sys_hr_organization set tenant_id = 1 where tenant_id is null;
|
Loading…
Reference in New Issue