diff --git a/kernel-s-system/system-spring-boot-starter/src/main/resources/db/migration/mysql/V8.0.0_20230830_0035__remove_system_tenant_id.sql b/kernel-s-system/system-spring-boot-starter/src/main/resources/db/migration/mysql/V8.0.0_20230830_0035__remove_system_tenant_id.sql index a12c8c0af..29b08a4ec 100644 --- a/kernel-s-system/system-spring-boot-starter/src/main/resources/db/migration/mysql/V8.0.0_20230830_0035__remove_system_tenant_id.sql +++ b/kernel-s-system/system-spring-boot-starter/src/main/resources/db/migration/mysql/V8.0.0_20230830_0035__remove_system_tenant_id.sql @@ -25,4 +25,8 @@ 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; \ No newline at end of file +update sys_hr_organization set tenant_id = 1 where tenant_id is null; + +-- 增加租户相关配置 +INSERT INTO `sys_dict`(`dict_id`, `dict_type_id`, `dict_code`, `dict_name`, `dict_name_pinyin`, `dict_encode`, `dict_short_name`, `dict_short_code`, `dict_parent_id`, `dict_pids`, `status_flag`, `dict_sort`, `version_flag`, `del_flag`, `create_time`, `create_user`, `update_time`, `update_user`) VALUES (1697301378511056897, 1353547215422132226, 'TENANT_CONFIG', '租户配置', 'zhpz', NULL, NULL, NULL, -1, '[-1],', 1, 80.00, 1, 'N', '2023-09-01 01:32:38', 1339550467939639299, '2023-09-01 01:32:46', 1339550467939639299); +INSERT INTO `sys_config`(`config_id`, `config_name`, `config_code`, `config_value`, `sys_flag`, `remark`, `status_flag`, `group_code`, `del_flag`, `create_time`, `create_user`, `update_time`, `update_user`) VALUES (1697301485767798785, '默认根租户的ID', 'DEFAULT_ROOT_TENANT_ID', '1', 'Y', NULL, 1, 'TENANT_CONFIG', 'N', '2023-09-01 01:33:03', 1339550467939639299, NULL, NULL); \ No newline at end of file