fix: index for alarm

This commit is contained in:
2024-02-02 16:00:53 +08:00
parent 077187c21d
commit f5b88d33bd
2 changed files with 6 additions and 2 deletions

View File

@@ -178,4 +178,6 @@ VALUES (
);
ALTER TABLE `omc_db`.`alarm`
ADD INDEX IF NOT EXISTS `idx_alarm_status` (`alarm_status`) USING BTREE;
ADD INDEX IF NOT EXISTS `idx_severity_status` (
`alarm_status`, `orig_severity`
) USING BTREE;

View File

@@ -178,4 +178,6 @@ VALUES (
);
ALTER TABLE `omc_db`.`alarm`
ADD INDEX IF NOT EXISTS `idx_alarm_status` (`alarm_status`) USING BTREE;
ADD INDEX IF NOT EXISTS `idx_severity_status` (
`alarm_status`, `orig_severity`
) USING BTREE;