From 34b02982e16e8f2fda4bc3825b071dae4335c45c Mon Sep 17 00:00:00 2001 From: fbsanchez Date: Fri, 30 Apr 2021 15:01:43 +0200 Subject: [PATCH] Ensure valid values (alert correlation) for compat mode for criticity, id_group and id_tag --- pandora_console/extras/mr/46.sql | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pandora_console/extras/mr/46.sql b/pandora_console/extras/mr/46.sql index 802d4b1e63..04d2b030cd 100644 --- a/pandora_console/extras/mr/46.sql +++ b/pandora_console/extras/mr/46.sql @@ -27,6 +27,10 @@ UPDATE `tskin` SET `name` = 'Default theme' , `relative_path` = 'pandora.cs UPDATE `tskin` SET `name` = 'Black theme' , `relative_path` = 'Black theme' , `description` = 'Black theme' WHERE `id` = 2; UPDATE `tevent_rule` SET `criticity` = NULL, `operator_criticity` = NULL WHERE `criticity` = 99; +UPDATE `tevent_rule` SET `id_grupo` = NULL, `operator_id_grupo` = NULL WHERE `id_grupo` = 0; +UPDATE `tevent_rule` SET `id_tag` = NULL, `operator_id_tag` = NULL WHERE `id_tag` = 0; UPDATE `tevent_rule` SET `operator_criticity` = '==' WHERE `criticity` != 99 AND `criticity` IS NOT NULL AND `criticity` != ''; +UPDATE `tevent_rule` SET `operator_id_grupo` = '==' WHERE `id_grupo` != 0 AND `id_grupo` IS NOT NULL AND `id_grupo` != ''; +UPDATE `tevent_rule` SET `operator_id_tag` = '==' WHERE `id_tag` != 0 AND `id_tag` IS NOT NULL AND `id_tag` != ''; COMMIT;