From ea60e4be71580425e24041e07166b0e0aadee682 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Gonz=C3=A1lez?= Date: Thu, 16 Jun 2022 11:14:00 +0200 Subject: [PATCH] Added database changes --- pandora_console/extras/mr/55.sql | 9 +++++++++ pandora_console/pandoradb.sql | 12 ++++++++++-- 2 files changed, 19 insertions(+), 2 deletions(-) diff --git a/pandora_console/extras/mr/55.sql b/pandora_console/extras/mr/55.sql index f53133c456..4542d76b80 100644 --- a/pandora_console/extras/mr/55.sql +++ b/pandora_console/extras/mr/55.sql @@ -4,4 +4,13 @@ ALTER TABLE `tservice` ADD COLUMN `enable_sunburst` tinyint(1) NOT NULL default ALTER TABLE `tdashboard` MODIFY `name` TEXT NOT NULL DEFAULT ''; +ALTER TABLE `tevent_alert` ADD COLUMN `field1_recovery` text DEFAULT '' AFTER `recovery_notify`; +ALTER TABLE `tevent_alert` ADD COLUMN `field4_recovery` text DEFAULT '' AFTER `field3_recovery`; +ALTER TABLE `tevent_alert` ADD COLUMN `field5_recovery` text DEFAULT '' AFTER `field4_recovery`; +ALTER TABLE `tevent_alert` ADD COLUMN `field6_recovery` text DEFAULT '' AFTER `field5_recovery`; +ALTER TABLE `tevent_alert` ADD COLUMN `field7_recovery` text DEFAULT '' AFTER `field6_recovery`; +ALTER TABLE `tevent_alert` ADD COLUMN `field8_recovery` text DEFAULT '' AFTER `field7_recovery`; +ALTER TABLE `tevent_alert` ADD COLUMN `field0_recovery` text DEFAULT '' AFTER `field8_recovery`; +ALTER TABLE `tevent_alert` ADD COLUMN `field10_recovery` text DEFAULT '' AFTER `field9_recovery`; + COMMIT; diff --git a/pandora_console/pandoradb.sql b/pandora_console/pandoradb.sql index ebd940c749..0634f10555 100644 --- a/pandora_console/pandoradb.sql +++ b/pandora_console/pandoradb.sql @@ -3016,8 +3016,16 @@ CREATE TABLE IF NOT EXISTS `tevent_alert` ( `saturday` TINYINT DEFAULT 1, `sunday` TINYINT DEFAULT 1, `recovery_notify` TINYINT DEFAULT 0, - `field2_recovery` TEXT , - `field3_recovery` TEXT, + `field1_recovery` TEXT DEFAULT '', + `field2_recovery` TEXT DEFAULT '', + `field3_recovery` TEXT DEFAULT '', + `field4_recovery` TEXT DEFAULT '', + `field5_recovery` TEXT DEFAULT '', + `field6_recovery` TEXT DEFAULT '', + `field7_recovery` TEXT DEFAULT '', + `field8_recovery` TEXT DEFAULT '', + `field9_recovery` TEXT DEFAULT '', + `field10_recovery` TEXT DEFAULT '', `id_group` MEDIUMINT UNSIGNED NULL DEFAULT 0, `internal_counter` INT DEFAULT 0, `last_fired` BIGINT NOT NULL DEFAULT 0,