From d850cd98fae7b119f6c037e7b3887f0a99779245 Mon Sep 17 00:00:00 2001 From: Ramon Novoa Date: Mon, 13 Sep 2010 14:21:05 +0000 Subject: [PATCH] 2010-09-13 Ramon Novoa * pandoradb.sql, extras/pandoradb_migrate_v3.1_to_v3.2.sql: Added a new column to talert_template_modules to support standby alerts. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3243 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f --- pandora_console/ChangeLog | 5 +++++ pandora_console/extras/pandoradb_migrate_v3.1_to_v3.2.sql | 2 +- pandora_console/pandoradb.sql | 3 ++- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index 1d4c7dfa59..76b39be1c6 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,8 @@ +2010-09-13 Ramon Novoa + + * pandoradb.sql, extras/pandoradb_migrate_v3.1_to_v3.2.sql: Added a + new column to talert_template_modules to support standby alerts. + 2010-09-13 Miguel de Dios * operation/agentes/ver_agente.php: added the tab to show all graphs in a diff --git a/pandora_console/extras/pandoradb_migrate_v3.1_to_v3.2.sql b/pandora_console/extras/pandoradb_migrate_v3.1_to_v3.2.sql index ebd124b9f4..632bc91d61 100644 --- a/pandora_console/extras/pandoradb_migrate_v3.1_to_v3.2.sql +++ b/pandora_console/extras/pandoradb_migrate_v3.1_to_v3.2.sql @@ -74,7 +74,7 @@ ALTER TABLE `tagente_modulo` ADD COLUMN `policy_linked` TINYINT(1) UNSIGNED NOT -- Table `talert_template_modules` -- ----------------------------------------------------- ALTER TABLE `talert_template_modules` ADD COLUMN `id_policy_alerts` int(10) unsigned NOT NULL default '0'; - +ALTER TABLE `talert_template_modules` ADD COLUMN `standby` tinyint(1) default '0'; -- ----------------------------------------------------- -- Table `tsnmp_filter` diff --git a/pandora_console/pandoradb.sql b/pandora_console/pandoradb.sql index 8fcb702151..2ecc14c7c4 100644 --- a/pandora_console/pandoradb.sql +++ b/pandora_console/pandoradb.sql @@ -287,6 +287,7 @@ CREATE TABLE IF NOT EXISTS `talert_template_modules` ( `last_reference` bigint(20) NOT NULL default '0', `times_fired` int(3) NOT NULL default '0', `disabled` tinyint(1) default '0', + `standby` tinyint(1) default '0', `priority` tinyint(4) default '0', `force_execution` tinyint(1) default '0', PRIMARY KEY (`id`), @@ -298,7 +299,7 @@ CREATE TABLE IF NOT EXISTS `talert_template_modules` ( UNIQUE (`id_agent_module`, `id_alert_template`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -CREATE TABLE IF NOT EXISTS `talert_template_module_actions` ( +CREATE TABLE IF NOT talert_template_module_actions` ( `id` int(10) unsigned NOT NULL auto_increment, `id_alert_template_module` int(10) unsigned NOT NULL, `id_alert_action` int(10) unsigned NOT NULL,