FIX: vue3 update sql
This commit is contained in:
@@ -1,14 +1,14 @@
|
||||
|
||||
-- 调度任务记录日志字典
|
||||
insert 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_type values(null, '任务日志记录', 'sys_job_save_log', '1', 'maskAdmin', REPLACE(unix_timestamp(now(3)),'.',''), '', 0, '任务日志记录列表');
|
||||
|
||||
|
||||
insert into `omc_db`.sys_dict_data values(null, 1, '不记录', '0', 'sys_job_save_log', '', '', '1', 'maskAdmin', REPLACE(unix_timestamp(now(3)),'.',''), '', 0, '不记录日志');
|
||||
insert into `omc_db`.sys_dict_data values(null, 2, '记录', '1', '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 `save_log` varchar(1) NULL DEFAULT '0' COMMENT '是否记录任务日志(0不记录 1记录)' AFTER `status`;
|
||||
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';
|
||||
|
||||
@@ -17,19 +17,19 @@ 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 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_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 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 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 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_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 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 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 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 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 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 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_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 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, '系统设置');
|
||||
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, '系统设置');
|
||||
|
||||
@@ -1,14 +1,14 @@
|
||||
|
||||
-- 调度任务记录日志字典
|
||||
insert 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_type values(null, '任务日志记录', 'sys_job_save_log', '1', 'maskAdmin', REPLACE(unix_timestamp(now(3)),'.',''), '', 0, '任务日志记录列表');
|
||||
|
||||
|
||||
insert into `omc_db`.sys_dict_data values(null, 1, '不记录', '0', 'sys_job_save_log', '', '', '1', 'maskAdmin', REPLACE(unix_timestamp(now(3)),'.',''), '', 0, '不记录日志');
|
||||
insert into `omc_db`.sys_dict_data values(null, 2, '记录', '1', '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 `save_log` varchar(1) NULL DEFAULT '0' COMMENT '是否记录任务日志(0不记录 1记录)' AFTER `status`;
|
||||
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';
|
||||
|
||||
@@ -17,19 +17,19 @@ 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 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_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 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 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 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_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 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 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 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 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 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 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_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 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, '系统设置');
|
||||
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, '系统设置');
|
||||
|
||||
Reference in New Issue
Block a user