Files
be.ems/database/upgrade/vue3_20231023.sql
2023-10-25 20:22:00 +08:00

36 lines
5.1 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.
-- 调度任务记录日志字典
INSERT IGNORE INTO `omc_db`.sys_dict_type values(null, '任务日志记录', 'sys_job_save_log', '1', 'maskAdmin', REPLACE(unix_timestamp(now(3)),'.',''), '', 0, '任务日志记录列表');
INSERT IGNORE INTO `omc_db`.sys_dict_data values(null, 1, '不记录', '0', 'sys_job_save_log', '', '', '1', 'maskAdmin', REPLACE(unix_timestamp(now(3)),'.',''), '', 0, '不记录日志');
INSERT IGNORE INTO `omc_db`.sys_dict_data values(null, 2, '记录', '1', 'sys_job_save_log', '', '', '1', 'maskAdmin', REPLACE(unix_timestamp(now(3)),'.',''), '', 0, '记录日志');
-- 调度任务记录日志字段
ALTER TABLE `omc_db`.`sys_job`
ADD COLUMN IF NOT EXISTS `save_log` varchar(1) NULL DEFAULT '0' COMMENT '是否记录任务日志0不记录 1记录' AFTER `status`;
UPDATE `omc_db`.`sys_job` SET `save_log` = '1';
-- 参数配置value长度
ALTER TABLE `omc_db`.`sys_config`
MODIFY COLUMN `config_value` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '参数键值' AFTER `config_key`;
-- 字典类型-网元软件版本状态
INSERT IGNORE INTO `omc_db`.`sys_dict_type` (`dict_id`, `dict_name`, `dict_type`, `status`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES (null, '网元软件版本状态', 'ne_version_status', '1', 'admin', 1698220546965, '', 0, '网元软件版本状态');
-- 字典数据-网元软件版本状态
INSERT IGNORE 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 (null, 1, '已上传', 'Uploaded', 'ne_version_status', NULL, 'processing', '1', 'admin', 1698220606300, '', 0, 'Uploaded');
INSERT IGNORE 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 (null, 2, '已激活', 'Inactive', 'ne_version_status', NULL, 'gold', '1', 'admin', 1698220634097, '', 0, '已激活Inactive');
INSERT IGNORE 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 (null, 3, '已启动', 'Active', 'ne_version_status', NULL, 'success', '1', 'admin', 1698220701130, '', 0, '已激活Active');
-- 参数配置-系统设置属性
INSERT IGNORE 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 (null, '系统设置-LOGO类型', 'sys.logo.type', 'icon', 'Y', 'admin', 1698112743562, 'admin', 1698217326676, '全图brand\n小图icon');
INSERT IGNORE 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 (null, '系统设置-LOGO文件icon', 'sys.logo.filePathIcon', '', 'Y', 'admin', 1698112935847, 'admin', 1698201425536, '文件支持网络地址图片和内部上传的文件路径');
INSERT IGNORE 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 (null, '系统设置-系统名称', 'sys.title', '核心网管理系统', 'Y', 'admin', 1698113035648, 'admin', 1698217311606, '系统名称长度限制11位字符串');
INSERT IGNORE 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 (null, '系统设置-版权声明', 'sys.copyright', 'Copyright ©2023 For AGrand 千通科技', 'Y', 'admin', 1698113158157, 'admin', 1698220040192, '底脚固定条,左侧放置版权声明');
INSERT IGNORE 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 (null, '系统设置-LOGO文件brand', 'sys.logo.filePathBrand', '', 'Y', 'admin', 1698112935847, 'admin', 1698219184041, '文件支持网络地址图片和内部上传的文件路径');
INSERT IGNORE 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 (null, '系统设置-登录界面背景', 'sys.loginBackground', '', 'Y', 'admin', 1698205046084, 'admin', 1698217285996, '文件支持网络地址图片和内部上传的文件路径');
-- 系统菜单-系统设置
INSERT IGNORE INTO `omc_db`.`sys_menu` (`menu_id`, `menu_name`, `parent_id`, `menu_sort`, `path`, `component`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES (null, '系统设置', 1, 12, 'setting', 'system/setting/index', '1', '0', 'M', '1', '1', 'system:setting:index', 'icon-piliang', 'admin', 1698060561910, '', 0, '系统设置');