From 424bd638f9d2f69d9b6db1659d7912aa6988df12 Mon Sep 17 00:00:00 2001 From: zarzuelo Date: Thu, 7 Jul 2011 10:07:19 +0000 Subject: [PATCH] 2011-07-07 Sergio Martin * pandoradb.sql pandoradb.postgreSQL.sql pandoradb.oracle.sql extras/pandoradb_migrate_v3.2_to_v4.0.sql: Added to the database schemma the disabled attribute to recon task table git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4520 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f --- pandora_console/ChangeLog | 8 ++++++++ pandora_console/extras/pandoradb_migrate_v3.2_to_v4.0.sql | 6 ++++++ pandora_console/pandoradb.oracle.sql | 3 ++- pandora_console/pandoradb.postgreSQL.sql | 3 ++- pandora_console/pandoradb.sql | 1 + 5 files changed, 19 insertions(+), 2 deletions(-) diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index 43a0bcd3b9..c3332973ee 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,11 @@ +2011-07-07 Sergio Martin + + * pandoradb.sql + pandoradb.postgreSQL.sql + pandoradb.oracle.sql + extras/pandoradb_migrate_v3.2_to_v4.0.sql: Added to the database + schemma the disabled attribute to recon task table + 2011-07-07 Sergio Martin * include/functions_servers.php diff --git a/pandora_console/extras/pandoradb_migrate_v3.2_to_v4.0.sql b/pandora_console/extras/pandoradb_migrate_v3.2_to_v4.0.sql index f272a1ff6b..8a6395ceca 100644 --- a/pandora_console/extras/pandoradb_migrate_v3.2_to_v4.0.sql +++ b/pandora_console/extras/pandoradb_migrate_v3.2_to_v4.0.sql @@ -194,3 +194,9 @@ ALTER TABLE `tevento` ADD COLUMN (`tags` text NOT NULL); -- ----------------------------------------------------- ALTER TABLE `tnetwork_map` ADD COLUMN `show_snmp_modules` TINYINT(1) UNSIGNED NOT NULL DEFAULT 0; + +-- ----------------------------------------------------- +-- Table `trecon_task` +-- ----------------------------------------------------- + +ALTER TABLE `trecon_task` ADD COLUMN `disabled` tinyint(1) UNSIGNED NOT NULL DEFAULT 0; diff --git a/pandora_console/pandoradb.oracle.sql b/pandora_console/pandoradb.oracle.sql index a1cd9fefa1..d085492cc3 100644 --- a/pandora_console/pandoradb.oracle.sql +++ b/pandora_console/pandoradb.oracle.sql @@ -707,7 +707,8 @@ CREATE TABLE trecon_task ( os_detect NUMBER(5, 0) default 1 NOT NULL, resolve_names NUMBER(5, 0) default 1 NOT NULL, parent_detection NUMBER(5, 0) default 1 NOT NULL, - parent_recursion NUMBER(5, 0) default 1 NOT NULL + parent_recursion NUMBER(5, 0) default 1 NOT NULL, + disabled NUMBER(5, 0) default 1 NOT NULL ); CREATE INDEX trecon_task_id_rec_serv_idx ON trecon_task(id_recon_server); diff --git a/pandora_console/pandoradb.postgreSQL.sql b/pandora_console/pandoradb.postgreSQL.sql index 6d8706bb03..9921da61ea 100644 --- a/pandora_console/pandoradb.postgreSQL.sql +++ b/pandora_console/pandoradb.postgreSQL.sql @@ -571,7 +571,8 @@ CREATE TABLE "trecon_task" ( "os_detect" SMALLINT NOT NULL default 1, "resolve_names" SMALLINT NOT NULL default 1, "parent_detection" SMALLINT NOT NULL default 1, - "parent_recursion" SMALLINT NOT NULL default 1 + "parent_recursion" SMALLINT NOT NULL default 1, + "disabled" SMALLINT NOT NULL default 1 ); CREATE INDEX "trecon_task_id_recon_server_idx" ON "trecon_task"("id_recon_server"); diff --git a/pandora_console/pandoradb.sql b/pandora_console/pandoradb.sql index c1f303fb78..06d8515389 100644 --- a/pandora_console/pandoradb.sql +++ b/pandora_console/pandoradb.sql @@ -623,6 +623,7 @@ CREATE TABLE IF NOT EXISTS `trecon_task` ( `resolve_names` tinyint(1) unsigned default '0', `parent_detection` tinyint(1) unsigned default '0', `parent_recursion` tinyint(1) unsigned default '0', + `disabled` tinyint(1) unsigned NOT NULL DEFAULT '0', PRIMARY KEY (`id_rt`), KEY `recon_task_daemon` (`id_recon_server`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8;