From 5e848da19ab87158ebad220eb87c6d58b691be97 Mon Sep 17 00:00:00 2001 From: fermin831 Date: Mon, 4 Apr 2016 13:51:21 +0200 Subject: [PATCH] Revert "Updated migrate sql script to add integria alert changes TICKETS #3091" This reverts commit baf2497d99da0f17226568bc0f1879c7726acdec. --- .../pandoradb_migrate_5.1_to_6.0.mysql.sql | 13 ------------- .../pandoradb_migrate_5.1_to_6.0.oracle.sql | 13 ------------- .../pandoradb_migrate_5.1_to_6.0.postgreSQL.sql | 16 +--------------- 3 files changed, 1 insertion(+), 41 deletions(-) diff --git a/pandora_console/extras/pandoradb_migrate_5.1_to_6.0.mysql.sql b/pandora_console/extras/pandoradb_migrate_5.1_to_6.0.mysql.sql index 96d6fe5469..9ee648599a 100644 --- a/pandora_console/extras/pandoradb_migrate_5.1_to_6.0.mysql.sql +++ b/pandora_console/extras/pandoradb_migrate_5.1_to_6.0.mysql.sql @@ -58,7 +58,6 @@ ALTER TABLE `tusuario` ADD COLUMN `strict_acl` tinyint(1) DEFAULT 0; -- Table `talert_commands` -- --------------------------------------------------------------------- UPDATE `talert_commands` SET `fields_descriptions` = '[\"Destination address\",\"Subject\",\"Text\",\"\",\"\",\"\",\"\",\"\",\"\",\"\"]', `fields_values` = '[\"\",\"\",\"_html_editor_\",\"\",\"\",\"\",\"\",\"\",\"\",\"\"]' WHERE `id` = 1 AND `name` = 'eMail'; -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'; -- --------------------------------------------------------------------- -- Table `tconfig` @@ -190,15 +189,3 @@ ALTER TABLE tgraph_source ADD COLUMN `id_server` int(11) NOT NULL default 0; -- --------------------------------------------------------------------- ALTER TABLE tevent_filter ADD COLUMN `id_agent_module` int(25) DEFAULT 0; ALTER TABLE tevent_filter ADD COLUMN `id_agent` int(25) 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; diff --git a/pandora_console/extras/pandoradb_migrate_5.1_to_6.0.oracle.sql b/pandora_console/extras/pandoradb_migrate_5.1_to_6.0.oracle.sql index 61dc9267fd..e6154b0af4 100755 --- a/pandora_console/extras/pandoradb_migrate_5.1_to_6.0.oracle.sql +++ b/pandora_console/extras/pandoradb_migrate_5.1_to_6.0.oracle.sql @@ -58,7 +58,6 @@ ALTER TABLE tusuario ADD COLUMN strict_acl NUMBER(5, 0) DEFAULT 0; -- Table `talert_commands` -- --------------------------------------------------------------------- UPDATE talert_commands SET fields_descriptions = '["Destination address","Subject","Text","","","","","","",""]', fields_values = '["\",\"\",\"_html_editor_\",\"\",\"\",\"\",\"\",\"\",\"\",\"\"]' WHERE id = 1 AND name = 'eMail'; -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'; -- --------------------------------------------------------------------- -- Table `tconfig` @@ -132,15 +131,3 @@ ALTER TABLE tevent_filter ADD COLUMN id_agent int(25) DEFAULT 0; -- --------------------------------------------------------------------- ALTER TABLE tgraph_source ADD COLUMN label VARCHAR2(150) DEFAULT ''; ALTER TABLE tgraph_source ADD COLUMN "id_server" BIGINT NOT NULL 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; diff --git a/pandora_console/extras/pandoradb_migrate_5.1_to_6.0.postgreSQL.sql b/pandora_console/extras/pandoradb_migrate_5.1_to_6.0.postgreSQL.sql index 23cc028679..2baccd29a4 100755 --- a/pandora_console/extras/pandoradb_migrate_5.1_to_6.0.postgreSQL.sql +++ b/pandora_console/extras/pandoradb_migrate_5.1_to_6.0.postgreSQL.sql @@ -56,7 +56,6 @@ ALTER TABLE "tusuario" ADD COLUMN "strict_acl" SMALLINT DEFAULT 0; -- Table `talert_commands` -- --------------------------------------------------------------------- UPDATE "talert_commands" SET "fields_descriptions" = '[\"Destination address\",\"Subject\",\"Text\",\"\",\"\",\"\",\"\",\"\",\"\",\"\"]', "fields_values" = '[\"\",\"\",\"_html_editor_\",\"\",\"\",\"\",\"\",\"\",\"\",\"\"]' WHERE "id" = 1 AND "name" = 'eMail'; -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'; -- --------------------------------------------------------------------- -- Table `tconfig` @@ -127,17 +126,4 @@ ALTER TABLE tevent_filter ADD COLUMN id_agent int(25) DEFAULT 0; -- Table `tgraph_source` -- --------------------------------------------------------------------- ALTER TABLE tgraph_source ADD COLUMN label VARCHAR2(150) DEFAULT ''; -ALTER TABLE tgraph_source ADD COLUMN id_graph NUMBER(19, 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; - +ALTER TABLE tgraph_source ADD COLUMN id_graph NUMBER(19, 0) DEFAULT 0; \ No newline at end of file