From 61280b2ad998e2da408da7dcc72c07b0189d54fc Mon Sep 17 00:00:00 2001 From: fermin831 Date: Mon, 4 Apr 2016 13:57:30 +0200 Subject: [PATCH] Updated migrate sql script to add integria alert changes TICKETS #3091 --- .../pandoradb_migrate_6.0_to_6.1.mysql.sql | 19 +++++++++++++++++++ .../pandoradb_migrate_6.0_to_6.1.oracle.sql | 17 +++++++++++++++++ 2 files changed, 36 insertions(+) diff --git a/pandora_console/extras/pandoradb_migrate_6.0_to_6.1.mysql.sql b/pandora_console/extras/pandoradb_migrate_6.0_to_6.1.mysql.sql index 3fd09188fa..f6c5709604 100644 --- a/pandora_console/extras/pandoradb_migrate_6.0_to_6.1.mysql.sql +++ b/pandora_console/extras/pandoradb_migrate_6.0_to_6.1.mysql.sql @@ -15,3 +15,22 @@ ALTER TABLE tserver ADD COLUMN `server_keepalive` int(11) DEFAULT 0; -- ---------------------------------------------------------------------- ALTER TABLE tagente_estado MODIFY `status_changes` tinyint(4) unsigned default 0; + +-- --------------------------------------------------------------------- +-- Table `talert_actions` +-- --------------------------------------------------------------------- +UPDATE talert_actions SET `field4` = 'integria', + `field5` = '_agent_: _alert_name_', + `field6` = '1', + `field7` = '3', + `field8` = 'copy@dom.com', + `field9` = 'admin', + `field10` = '_alert_description_' +WHERE `id` = 4 AND `id_alert_command` = 11; + +-- --------------------------------------------------------------------- +-- Table `talert_commands` +-- --------------------------------------------------------------------- +UPDATE `talert_commands` SET `fields_descriptions` = '[\"Integria IMS API path\",\"Integria IMS API pass\",\"Integria IMS user\",\"Integria IMS user pass\",\"Ticket title\",\"Ticket group ID\",\"Ticket priority\",\"Email copy\",\"Ticket owner\",\"Ticket description\"]', `fields_values` = '[\"\",\"\",\"\",\"\",\"\",\"\",\"10,Maintenance;0,Informative;1,Low;2,Medium;3,Serious;4,Very Serious\",\"\",\"\",\"\"]' WHERE `id` = 11 AND `name` = 'Integria IMS Ticket'; + + diff --git a/pandora_console/extras/pandoradb_migrate_6.0_to_6.1.oracle.sql b/pandora_console/extras/pandoradb_migrate_6.0_to_6.1.oracle.sql index 1ede58f9cb..6c32126e8d 100644 --- a/pandora_console/extras/pandoradb_migrate_6.0_to_6.1.oracle.sql +++ b/pandora_console/extras/pandoradb_migrate_6.0_to_6.1.oracle.sql @@ -9,3 +9,20 @@ ALTER TABLE talert_templates ADD COLUMN min_alerts_reset_counter NUMBER(5, 0) DE -- ---------------------------------------------------------------------- ALTER TABLE tserver ADD COLUMN server_keepalive NUMBER(10, 0) DEFAULT 0; + +-- --------------------------------------------------------------------- +-- Table `talert_actions` +-- --------------------------------------------------------------------- +UPDATE talert_actions SET field4 = 'integria', + field5 = '_agent_: _alert_name_', + field6 = '1', + field7 = '3', + field8 = 'copy@dom.com', + field9 = 'admin', + field10 = '_alert_description_' +WHERE id = 4 AND id_alert_command = 11; + +-- --------------------------------------------------------------------- +-- Table `talert_commands` +-- --------------------------------------------------------------------- +UPDATE talert_commands SET fields_descriptions = '[\"Integria IMS API path\",\"Integria IMS API pass\",\"Integria IMS user\",\"Integria IMS user pass\",\"Ticket title\",\"Ticket group ID\",\"Ticket priority\",\"Email copy\",\"Ticket owner\",\"Ticket description\"]', fields_values = '[\"\",\"\",\"\",\"\",\"\",\"\",\"10,Maintenance;0,Informative;1,Low;2,Medium;3,Serious;4,Very Serious\",\"\",\"\",\"\"]' WHERE id = 11 AND name = 'Integria IMS Ticket';