sql: 数据库安装升级-c ba/agt
This commit is contained in:
@@ -1,271 +1,20 @@
|
||||
SET FOREIGN_KEY_CHECKS = 0;
|
||||
|
||||
REPLACE
|
||||
INTO `omc_db`.`sys_config` (
|
||||
`config_id`,
|
||||
`config_name`,
|
||||
`config_key`,
|
||||
`config_value`,
|
||||
`config_type`,
|
||||
`create_by`,
|
||||
`create_time`,
|
||||
`update_by`,
|
||||
`update_time`,
|
||||
`remark`
|
||||
)
|
||||
VALUES (
|
||||
106,
|
||||
'config.sys.title',
|
||||
'sys.title',
|
||||
'config.sys.titleValue',
|
||||
'Y',
|
||||
'supervisor',
|
||||
1698110000000,
|
||||
NULL,
|
||||
0,
|
||||
'config.sys.titleRemark'
|
||||
);
|
||||
--
|
||||
REPLACE INTO `sys_config` VALUES (6, 'config.sys.officialUrl', 'sys.officialUrl', 'https://www.agrandtech.com', 'Y', 'supervisor', 1700000000000, NULL, 0, 'config.sys.officialUrlRemark');
|
||||
REPLACE INTO `sys_config` VALUES (106, 'config.sys.title', 'sys.title', 'config.sys.titleValue', 'Y', 'supervisor', 1700000000000, NULL, 0, 'config.sys.titleRemark');
|
||||
REPLACE INTO `sys_config` VALUES (107, 'config.sys.copyright', 'sys.copyright', 'config.sys.copyrightValue', 'Y', 'supervisor', 1700000000000, NULL, 0, 'config.sys.copyrightRemark');
|
||||
REPLACE INTO `sys_config` VALUES (108, 'config.sys.i18nOpen', 'sys.i18n.open', 'true', 'Y', 'supervisor', 1700000000000, NULL, 0, 'config.sys.i18nOpenRemark');
|
||||
REPLACE INTO `sys_config` VALUES (109, 'config.sys.i18nDefault', 'sys.i18n.default', 'en_US', 'Y', 'supervisor', 1700000000000, NULL, 0, 'config.sys.i18nDefaultRemark');
|
||||
|
||||
REPLACE
|
||||
INTO `omc_db`.`sys_config` (
|
||||
`config_id`,
|
||||
`config_name`,
|
||||
`config_key`,
|
||||
`config_value`,
|
||||
`config_type`,
|
||||
`create_by`,
|
||||
`create_time`,
|
||||
`update_by`,
|
||||
`update_time`,
|
||||
`remark`
|
||||
)
|
||||
VALUES (
|
||||
107,
|
||||
'config.sys.copyright',
|
||||
'sys.copyright',
|
||||
'config.sys.copyrightValue',
|
||||
'Y',
|
||||
'supervisor',
|
||||
1698110000000,
|
||||
NULL,
|
||||
0,
|
||||
'config.sys.copyrightRemark'
|
||||
);
|
||||
|
||||
REPLACE
|
||||
INTO `omc_db`.`sys_config` (
|
||||
`config_id`,
|
||||
`config_name`,
|
||||
`config_key`,
|
||||
`config_value`,
|
||||
`config_type`,
|
||||
`create_by`,
|
||||
`create_time`,
|
||||
`update_by`,
|
||||
`update_time`,
|
||||
`remark`
|
||||
)
|
||||
VALUES (
|
||||
108,
|
||||
'config.sys.i18nOpen',
|
||||
'sys.i18n.open',
|
||||
'true',
|
||||
'Y',
|
||||
'supervisor',
|
||||
1698110000000,
|
||||
NULL,
|
||||
0,
|
||||
'config.sys.i18nOpenRemark'
|
||||
);
|
||||
|
||||
REPLACE
|
||||
INTO `omc_db`.`sys_config` (
|
||||
`config_id`,
|
||||
`config_name`,
|
||||
`config_key`,
|
||||
`config_value`,
|
||||
`config_type`,
|
||||
`create_by`,
|
||||
`create_time`,
|
||||
`update_by`,
|
||||
`update_time`,
|
||||
`remark`
|
||||
)
|
||||
VALUES (
|
||||
109,
|
||||
'Internationalization Default Language',
|
||||
'sys.i18n.default',
|
||||
'en_US',
|
||||
'Y',
|
||||
'supervisor',
|
||||
1698110000000,
|
||||
'supervisor',
|
||||
1702632906566,
|
||||
'config.sys.i18nDefaultRemark'
|
||||
);
|
||||
|
||||
REPLACE
|
||||
INTO `omc_db`.`sys_config` (
|
||||
`config_id`,
|
||||
`config_name`,
|
||||
`config_key`,
|
||||
`config_value`,
|
||||
`config_type`,
|
||||
`create_by`,
|
||||
`create_time`,
|
||||
`update_by`,
|
||||
`update_time`,
|
||||
`remark`
|
||||
)
|
||||
VALUES (
|
||||
6,
|
||||
'config.sys.officialUrl',
|
||||
'sys.officialUrl',
|
||||
'https://www.agrandtech.com',
|
||||
'Y',
|
||||
'supervisor',
|
||||
1698110000000,
|
||||
'admin',
|
||||
1700809804330,
|
||||
'config.sys.officialUrlRemark'
|
||||
);
|
||||
|
||||
REPLACE
|
||||
INTO `omc_db`.`sys_dict_data` (
|
||||
`dict_code`,
|
||||
`dict_sort`,
|
||||
`dict_label`,
|
||||
`dict_value`,
|
||||
`dict_type`,
|
||||
`tag_class`,
|
||||
`tag_type`,
|
||||
`status`,
|
||||
`create_by`,
|
||||
`create_time`,
|
||||
`update_by`,
|
||||
`update_time`,
|
||||
`remark`
|
||||
)
|
||||
VALUES (
|
||||
1660,
|
||||
1660,
|
||||
'config.sys.titleValue',
|
||||
'AGrandEMS',
|
||||
'i18n_zh',
|
||||
NULL,
|
||||
NULL,
|
||||
'1',
|
||||
'supervisor',
|
||||
1699350000000,
|
||||
NULL,
|
||||
0,
|
||||
NULL
|
||||
);
|
||||
|
||||
REPLACE
|
||||
INTO `omc_db`.`sys_dict_data` (
|
||||
`dict_code`,
|
||||
`dict_sort`,
|
||||
`dict_label`,
|
||||
`dict_value`,
|
||||
`dict_type`,
|
||||
`tag_class`,
|
||||
`tag_type`,
|
||||
`status`,
|
||||
`create_by`,
|
||||
`create_time`,
|
||||
`update_by`,
|
||||
`update_time`,
|
||||
`remark`
|
||||
)
|
||||
VALUES (
|
||||
3660,
|
||||
3660,
|
||||
'config.sys.titleValue',
|
||||
'AGrandEMS',
|
||||
'i18n_en',
|
||||
NULL,
|
||||
NULL,
|
||||
'1',
|
||||
'supervisor',
|
||||
1699350000000,
|
||||
NULL,
|
||||
0,
|
||||
NULL
|
||||
);
|
||||
|
||||
REPLACE
|
||||
INTO `omc_db`.`sys_dict_data` (
|
||||
`dict_code`,
|
||||
`dict_sort`,
|
||||
`dict_label`,
|
||||
`dict_value`,
|
||||
`dict_type`,
|
||||
`tag_class`,
|
||||
`tag_type`,
|
||||
`status`,
|
||||
`create_by`,
|
||||
`create_time`,
|
||||
`update_by`,
|
||||
`update_time`,
|
||||
`remark`
|
||||
)
|
||||
VALUES (
|
||||
1661,
|
||||
1661,
|
||||
'config.sys.copyrightValue',
|
||||
'Copyright ©2023 千通科技',
|
||||
'i18n_zh',
|
||||
NULL,
|
||||
NULL,
|
||||
'1',
|
||||
'supervisor',
|
||||
1699350000000,
|
||||
NULL,
|
||||
0,
|
||||
NULL
|
||||
);
|
||||
|
||||
REPLACE
|
||||
INTO `omc_db`.`sys_dict_data` (
|
||||
`dict_code`,
|
||||
`dict_sort`,
|
||||
`dict_label`,
|
||||
`dict_value`,
|
||||
`dict_type`,
|
||||
`tag_class`,
|
||||
`tag_type`,
|
||||
`status`,
|
||||
`create_by`,
|
||||
`create_time`,
|
||||
`update_by`,
|
||||
`update_time`,
|
||||
`remark`
|
||||
)
|
||||
VALUES (
|
||||
3661,
|
||||
3661,
|
||||
'config.sys.copyrightValue',
|
||||
'Copyright ©2023 AGrandTech',
|
||||
'i18n_en',
|
||||
NULL,
|
||||
NULL,
|
||||
'1',
|
||||
'supervisor',
|
||||
1699350000000,
|
||||
NULL,
|
||||
0,
|
||||
NULL
|
||||
);
|
||||
--
|
||||
REPLACE INTO `sys_dict_data` VALUES (1660, 1660, 'config.sys.titleValue', 'AGrand EMS', 'i18n_zh', NULL, NULL, '1', 'supervisor', 1700000000000, NULL, 0, NULL);
|
||||
REPLACE INTO `sys_dict_data` VALUES (1661, 1661, 'config.sys.copyrightValue', 'Copyright ©2023 千通科技', 'i18n_zh', NULL, NULL, '1', 'supervisor', 1700000000000, NULL, 0, NULL);
|
||||
REPLACE INTO `sys_dict_data` VALUES (3660, 3660, 'config.sys.titleValue', 'AGrand EMS', 'i18n_en', NULL, NULL, '1', 'supervisor', 1700000000000, NULL, 0, NULL);
|
||||
REPLACE INTO `sys_dict_data` VALUES (3661, 3661, 'config.sys.copyrightValue', 'Copyright ©2023 AGrandTech', 'i18n_en', NULL, NULL, '1', 'supervisor', 1700000000000, NULL, 0, NULL);
|
||||
|
||||
-- set internationalization switching to ON
|
||||
-- REPLACE
|
||||
-- INTO `omc_db`.`sys_role_menu` (`role_id`, `menu_id`)
|
||||
-- VALUES (2, 2122);
|
||||
UPDATE `omc_db`.`sys_menu`
|
||||
SET
|
||||
`status` = '1'
|
||||
WHERE
|
||||
`menu_id` = 2122;
|
||||
-- REPLACE INTO `omc_db`.`sys_role_menu` (`role_id`, `menu_id`) VALUES (2, 2122);
|
||||
UPDATE `sys_menu` SET `status` = '1' WHERE `menu_id` = 2122;
|
||||
|
||||
SET FOREIGN_KEY_CHECKS = 1;
|
||||
@@ -1,269 +1,20 @@
|
||||
SET FOREIGN_KEY_CHECKS = 0;
|
||||
|
||||
REPLACE
|
||||
INTO `omc_db`.`sys_config` (
|
||||
`config_id`,
|
||||
`config_name`,
|
||||
`config_key`,
|
||||
`config_value`,
|
||||
`config_type`,
|
||||
`create_by`,
|
||||
`create_time`,
|
||||
`update_by`,
|
||||
`update_time`,
|
||||
`remark`
|
||||
)
|
||||
VALUES (
|
||||
106,
|
||||
'config.sys.title',
|
||||
'sys.title',
|
||||
'config.sys.titleValue',
|
||||
'Y',
|
||||
'supervisor',
|
||||
1698110000000,
|
||||
NULL,
|
||||
0,
|
||||
'config.sys.titleRemark'
|
||||
);
|
||||
--
|
||||
REPLACE INTO `sys_config` VALUES (6, 'config.sys.officialUrl', 'sys.officialUrl', 'https://www.bluearcus.com', 'Y', 'supervisor', 1700000000000, NULL, 0, 'config.sys.officialUrlRemark');
|
||||
REPLACE INTO `sys_config` VALUES (106, 'config.sys.title', 'sys.title', 'config.sys.titleValue', 'Y', 'supervisor', 1700000000000, NULL, 0, 'config.sys.titleRemark');
|
||||
REPLACE INTO `sys_config` VALUES (107, 'config.sys.copyright', 'sys.copyright', 'config.sys.copyrightValue', 'Y', 'supervisor', 1700000000000, NULL, 0, 'config.sys.copyrightRemark');
|
||||
REPLACE INTO `sys_config` VALUES (108, 'config.sys.i18nOpen', 'sys.i18n.open', 'false', 'Y', 'supervisor', 1700000000000, NULL, 0, 'config.sys.i18nOpenRemark');
|
||||
REPLACE INTO `sys_config` VALUES (109, 'config.sys.i18nDefault', 'sys.i18n.default', 'en_US', 'Y', 'supervisor', 1700000000000, NULL, 0, 'config.sys.i18nDefaultRemark');
|
||||
|
||||
REPLACE
|
||||
INTO `omc_db`.`sys_config` (
|
||||
`config_id`,
|
||||
`config_name`,
|
||||
`config_key`,
|
||||
`config_value`,
|
||||
`config_type`,
|
||||
`create_by`,
|
||||
`create_time`,
|
||||
`update_by`,
|
||||
`update_time`,
|
||||
`remark`
|
||||
)
|
||||
VALUES (
|
||||
107,
|
||||
'config.sys.copyright',
|
||||
'sys.copyright',
|
||||
'config.sys.copyrightValue',
|
||||
'Y',
|
||||
'supervisor',
|
||||
1698110000000,
|
||||
NULL,
|
||||
0,
|
||||
'config.sys.copyrightRemark'
|
||||
);
|
||||
--
|
||||
REPLACE INTO `sys_dict_data` VALUES (1660, 1660, 'config.sys.titleValue', 'BlueArcus EMS', 'i18n_zh', NULL, NULL, '1', 'supervisor', 1700000000000, NULL, 0, NULL);
|
||||
REPLACE INTO `sys_dict_data` VALUES (1661, 1661, 'config.sys.copyrightValue', 'Copyright ©2023 BlueArcus', 'i18n_zh', NULL, NULL, '1', 'supervisor', 1700000000000, NULL, 0, NULL);
|
||||
REPLACE INTO `sys_dict_data` VALUES (3660, 3660, 'config.sys.titleValue', 'BlueArcus EMS', 'i18n_en', NULL, NULL, '1', 'supervisor', 1700000000000, NULL, 0, NULL);
|
||||
REPLACE INTO `sys_dict_data` VALUES (3661, 3661, 'config.sys.copyrightValue', 'Copyright ©2023 BlueArcus', 'i18n_en', NULL, NULL, '1', 'supervisor', 1700000000000, NULL, 0, NULL);
|
||||
|
||||
REPLACE
|
||||
INTO `omc_db`.`sys_config` (
|
||||
`config_id`,
|
||||
`config_name`,
|
||||
`config_key`,
|
||||
`config_value`,
|
||||
`config_type`,
|
||||
`create_by`,
|
||||
`create_time`,
|
||||
`update_by`,
|
||||
`update_time`,
|
||||
`remark`
|
||||
)
|
||||
VALUES (
|
||||
108,
|
||||
'config.sys.i18nOpen',
|
||||
'sys.i18n.open',
|
||||
'false',
|
||||
'Y',
|
||||
'supervisor',
|
||||
1698110000000,
|
||||
NULL,
|
||||
0,
|
||||
'config.sys.i18nOpenRemark'
|
||||
);
|
||||
|
||||
REPLACE
|
||||
INTO `omc_db`.`sys_config` (
|
||||
`config_id`,
|
||||
`config_name`,
|
||||
`config_key`,
|
||||
`config_value`,
|
||||
`config_type`,
|
||||
`create_by`,
|
||||
`create_time`,
|
||||
`update_by`,
|
||||
`update_time`,
|
||||
`remark`
|
||||
)
|
||||
VALUES (
|
||||
109,
|
||||
'Internationalization Default Language',
|
||||
'sys.i18n.default',
|
||||
'en_US',
|
||||
'Y',
|
||||
'supervisor',
|
||||
1698110000000,
|
||||
'supervisor',
|
||||
1702632906566,
|
||||
'config.sys.i18nDefaultRemark'
|
||||
);
|
||||
|
||||
REPLACE
|
||||
INTO `omc_db`.`sys_config` (
|
||||
`config_id`,
|
||||
`config_name`,
|
||||
`config_key`,
|
||||
`config_value`,
|
||||
`config_type`,
|
||||
`create_by`,
|
||||
`create_time`,
|
||||
`update_by`,
|
||||
`update_time`,
|
||||
`remark`
|
||||
)
|
||||
VALUES (
|
||||
6,
|
||||
'config.sys.officialUrl',
|
||||
'sys.officialUrl',
|
||||
'https://www.bluearcus.com',
|
||||
'Y',
|
||||
'supervisor',
|
||||
1698110000000,
|
||||
'admin',
|
||||
1700809804330,
|
||||
'config.sys.officialUrlRemark'
|
||||
);
|
||||
|
||||
REPLACE
|
||||
INTO `omc_db`.`sys_dict_data` (
|
||||
`dict_code`,
|
||||
`dict_sort`,
|
||||
`dict_label`,
|
||||
`dict_value`,
|
||||
`dict_type`,
|
||||
`tag_class`,
|
||||
`tag_type`,
|
||||
`status`,
|
||||
`create_by`,
|
||||
`create_time`,
|
||||
`update_by`,
|
||||
`update_time`,
|
||||
`remark`
|
||||
)
|
||||
VALUES (
|
||||
1660,
|
||||
1660,
|
||||
'config.sys.titleValue',
|
||||
'BlueArcus EMS',
|
||||
'i18n_zh',
|
||||
NULL,
|
||||
NULL,
|
||||
'1',
|
||||
'supervisor',
|
||||
1699350000000,
|
||||
NULL,
|
||||
0,
|
||||
NULL
|
||||
);
|
||||
|
||||
REPLACE
|
||||
INTO `omc_db`.`sys_dict_data` (
|
||||
`dict_code`,
|
||||
`dict_sort`,
|
||||
`dict_label`,
|
||||
`dict_value`,
|
||||
`dict_type`,
|
||||
`tag_class`,
|
||||
`tag_type`,
|
||||
`status`,
|
||||
`create_by`,
|
||||
`create_time`,
|
||||
`update_by`,
|
||||
`update_time`,
|
||||
`remark`
|
||||
)
|
||||
VALUES (
|
||||
3660,
|
||||
3660,
|
||||
'config.sys.titleValue',
|
||||
'BlueArcus EMS',
|
||||
'i18n_en',
|
||||
NULL,
|
||||
NULL,
|
||||
'1',
|
||||
'supervisor',
|
||||
1699350000000,
|
||||
NULL,
|
||||
0,
|
||||
NULL
|
||||
);
|
||||
|
||||
REPLACE
|
||||
INTO `omc_db`.`sys_dict_data` (
|
||||
`dict_code`,
|
||||
`dict_sort`,
|
||||
`dict_label`,
|
||||
`dict_value`,
|
||||
`dict_type`,
|
||||
`tag_class`,
|
||||
`tag_type`,
|
||||
`status`,
|
||||
`create_by`,
|
||||
`create_time`,
|
||||
`update_by`,
|
||||
`update_time`,
|
||||
`remark`
|
||||
)
|
||||
VALUES (
|
||||
1661,
|
||||
1661,
|
||||
'config.sys.copyrightValue',
|
||||
'Copyright ©2023 BlueArcus',
|
||||
'i18n_zh',
|
||||
NULL,
|
||||
NULL,
|
||||
'1',
|
||||
'supervisor',
|
||||
1699350000000,
|
||||
NULL,
|
||||
0,
|
||||
NULL
|
||||
);
|
||||
|
||||
REPLACE
|
||||
INTO `omc_db`.`sys_dict_data` (
|
||||
`dict_code`,
|
||||
`dict_sort`,
|
||||
`dict_label`,
|
||||
`dict_value`,
|
||||
`dict_type`,
|
||||
`tag_class`,
|
||||
`tag_type`,
|
||||
`status`,
|
||||
`create_by`,
|
||||
`create_time`,
|
||||
`update_by`,
|
||||
`update_time`,
|
||||
`remark`
|
||||
)
|
||||
VALUES (
|
||||
3661,
|
||||
3661,
|
||||
'config.sys.copyrightValue',
|
||||
'Copyright ©2023 BlueArcus',
|
||||
'i18n_en',
|
||||
NULL,
|
||||
NULL,
|
||||
'1',
|
||||
'supervisor',
|
||||
1699350000000,
|
||||
NULL,
|
||||
0,
|
||||
NULL
|
||||
);
|
||||
|
||||
-- set internationalization switching to OFF
|
||||
-- DELETE FROM `omc_db`.`sys_role_menu` WHERE `menu_id` = 2122;
|
||||
UPDATE `omc_db`.`sys_menu`
|
||||
SET
|
||||
`status` = '0'
|
||||
WHERE
|
||||
`menu_id` = 2122;
|
||||
-- set internationalization switching to ON
|
||||
-- REPLACE INTO `omc_db`.`sys_role_menu` (`role_id`, `menu_id`) VALUES (2, 2122);
|
||||
UPDATE `sys_menu` SET `status` = '0' WHERE `menu_id` = 2122;
|
||||
|
||||
SET FOREIGN_KEY_CHECKS = 1;
|
||||
Reference in New Issue
Block a user