add: alarm_event table upgrade
This commit is contained in:
@@ -59,4 +59,79 @@ CREATE TABLE IF NOT EXISTS `alarm_event` (
|
||||
INDEX `idx_severity_status`(`alarm_status`, `orig_severity`) USING BTREE
|
||||
) ENGINE = InnoDB AUTO_INCREMENT = 228788 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = Dynamic;
|
||||
|
||||
-- Move event alarm from table alarm to alarm_event
|
||||
START TRANSACTION;
|
||||
|
||||
INSERT INTO
|
||||
`omc_db`.`alarm_event` (
|
||||
`alarm_seq`,
|
||||
`alarm_id`,
|
||||
`alarm_title`,
|
||||
`ne_type`,
|
||||
`ne_id`,
|
||||
`alarm_code`,
|
||||
`event_time`,
|
||||
`alarm_type`,
|
||||
`orig_severity`,
|
||||
`perceived_severity`,
|
||||
`pv_flag`,
|
||||
`ne_name`,
|
||||
`object_uid`,
|
||||
`object_name`,
|
||||
`object_type`,
|
||||
`location_info`,
|
||||
`province`,
|
||||
`alarm_status`,
|
||||
`specific_problem`,
|
||||
`specific_problem_id`,
|
||||
`add_info`,
|
||||
`counter`,
|
||||
`latest_event_time`,
|
||||
`ack_state`,
|
||||
`ack_time`,
|
||||
`ack_user`,
|
||||
`clear_type`,
|
||||
`clear_time`,
|
||||
`clear_user`,
|
||||
`timestamp`
|
||||
)
|
||||
SELECT
|
||||
`alarm_seq`,
|
||||
`alarm_id`,
|
||||
`alarm_title`,
|
||||
`ne_type`,
|
||||
`ne_id`,
|
||||
`alarm_code`,
|
||||
`event_time`,
|
||||
`alarm_type`,
|
||||
`orig_severity`,
|
||||
`perceived_severity`,
|
||||
`pv_flag`,
|
||||
`ne_name`,
|
||||
`object_uid`,
|
||||
`object_name`,
|
||||
`object_type`,
|
||||
`location_info`,
|
||||
`province`,
|
||||
`alarm_status`,
|
||||
`specific_problem`,
|
||||
`specific_problem_id`,
|
||||
`add_info`,
|
||||
`counter`,
|
||||
`latest_event_time`,
|
||||
`ack_state`,
|
||||
`ack_time`,
|
||||
`ack_user`,
|
||||
`clear_type`,
|
||||
`clear_time`,
|
||||
`clear_user`,
|
||||
`timestamp`
|
||||
FROM `omc_db`.`alarm`
|
||||
WHERE
|
||||
`orig_severity` = 'Event';
|
||||
|
||||
DELETE FROM `omc_db`.`alarm` WHERE `orig_severity` = 'Event';
|
||||
|
||||
COMMIT;
|
||||
|
||||
SET FOREIGN_KEY_CHECKS = 1;
|
||||
|
||||
@@ -654,5 +654,6 @@ INSERT IGNORE INTO `sys_dict_data` VALUES (2130, 2130, 'post.export.time', '创
|
||||
INSERT IGNORE INTO `sys_dict_data` VALUES (2131, 2131, 'role.export.time', '创建时间', 'i18n_zh', '', '', '1', 'supervisor', 1705550000000, '', 0, '');
|
||||
INSERT IGNORE INTO `sys_dict_data` VALUES (2132, 2132, 'dictData.ne_host_authMode.2', '免密认证', 'i18n_zh', '', '', '1', 'supervisor', 1705550000000, '', 0, '');
|
||||
INSERT IGNORE INTO `sys_dict_data` VALUES (2133, 2133, 'menu.ne.neConfPara5G', '网元公共配置', 'i18n_zh', '', '', '1', 'supervisor', 1705550000000, '', 0, '');
|
||||
INSERT IGNORE INTO `sys_dict_data` VALUES (2138, 2138, 'menu.fault.event', '事件通知', 'i18n_zh', '', '', '1', 'supervisor', 1717051745866, '', 0, '');
|
||||
|
||||
SET FOREIGN_KEY_CHECKS = 1;
|
||||
|
||||
@@ -655,5 +655,6 @@ INSERT IGNORE INTO `sys_dict_data` VALUES (4130, 4130, 'post.export.time', 'Crea
|
||||
INSERT IGNORE INTO `sys_dict_data` VALUES (4131, 4131, 'role.export.time', 'Creation Time', 'i18n_en', '', '', '1', 'supervisor', 1705550000000, '', 0, '');
|
||||
INSERT IGNORE INTO `sys_dict_data` VALUES (4132, 4132, 'dictData.ne_host_authMode.2', 'Confidentiality Auth Mode', 'i18n_en', '', '', '1', 'supervisor', 1705550000000, '', 0, '');
|
||||
INSERT IGNORE INTO `sys_dict_data` VALUES (4133, 4133, 'menu.ne.neConfPara5G', 'NE Config Public 5G', 'i18n_en', '', '', '1', 'supervisor', 1705550000000, '', 0, '');
|
||||
INSERT IGNORE INTO `sys_dict_data` VALUES (4138, 4138, 'menu.fault.event', 'Event Notification', 'i18n_en', NULL, NULL, '1', 'supervisor', 1717051688260, '', 0, NULL);
|
||||
|
||||
SET FOREIGN_KEY_CHECKS = 1;
|
||||
|
||||
@@ -1145,4 +1145,47 @@ WHERE
|
||||
|
||||
-- end: remove
|
||||
|
||||
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 (
|
||||
2144,
|
||||
'menu.fault.event',
|
||||
2129,
|
||||
3,
|
||||
'event',
|
||||
'faultManage/event/index',
|
||||
'1',
|
||||
'0',
|
||||
'M',
|
||||
'1',
|
||||
'1',
|
||||
'faultManage:event:index',
|
||||
'icon-tubiaoku',
|
||||
'supervisor',
|
||||
1717051993146,
|
||||
'supervisor',
|
||||
1717052106943,
|
||||
''
|
||||
);
|
||||
|
||||
|
||||
SET FOREIGN_KEY_CHECKS = 1;
|
||||
|
||||
Reference in New Issue
Block a user