From 21d356562dabf8018376d89427f985f76701a749 Mon Sep 17 00:00:00 2001 From: slerena Date: Fri, 17 Aug 2012 18:11:02 +0000 Subject: [PATCH] 2012-08-17 Sancho Lerena * pandoradb.sql pandoradb.postgreSQL.sql pandoradb.oracle.sql extras/pandoradb_migrate_4.0.x_to_5.0.mysql.sql:New fields for tagente_modulo. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6880 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f --- pandora_console/ChangeLog | 8 ++++++++ .../extras/pandoradb_migrate_4.0.x_to_5.0.mysql.sql | 8 ++++++++ pandora_console/pandoradb.oracle.sql | 3 +++ pandora_console/pandoradb.postgreSQL.sql | 5 ++++- pandora_console/pandoradb.sql | 4 ++++ 5 files changed, 27 insertions(+), 1 deletion(-) diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index 50aef13cd3..620d62f982 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,11 @@ +2012-08-17 Sancho Lerena + + * pandoradb.sql + pandoradb.postgreSQL.sql + pandoradb.oracle.sql + extras/pandoradb_migrate_4.0.x_to_5.0.mysql.sql:New fields for + tagente_modulo. + 2012-08-17 Miguel de Dios * godmode/users/configure_user.php: fixed when the metaconsole is diff --git a/pandora_console/extras/pandoradb_migrate_4.0.x_to_5.0.mysql.sql b/pandora_console/extras/pandoradb_migrate_4.0.x_to_5.0.mysql.sql index d698f63990..2e0fab3582 100644 --- a/pandora_console/extras/pandoradb_migrate_4.0.x_to_5.0.mysql.sql +++ b/pandora_console/extras/pandoradb_migrate_4.0.x_to_5.0.mysql.sql @@ -297,3 +297,11 @@ WHERE id_recon_script=1; -- ----------------------------------------------------- ALTER TABLE trecon_task MODIFY subnet TEXT NOT NULL DEFAULT ''; ALTER TABLE trecon_task MODIFY field1 TEXT NOT NULL DEFAULT ''; + + + +ALTER TABLE tagente_modulo ADD `critical_instructions` text; +ALTER TABLE tagente_modulo ADD `warning_instructions` text; +ALTER TABLE tagente_modulo ADD `unknown_instructions` text; + + diff --git a/pandora_console/pandoradb.oracle.sql b/pandora_console/pandoradb.oracle.sql index 7fcac503e2..c2c9c27060 100644 --- a/pandora_console/pandoradb.oracle.sql +++ b/pandora_console/pandoradb.oracle.sql @@ -210,6 +210,9 @@ CREATE TABLE tagente_modulo ( custom_integer_2 NUMBER(10, 0) default 0, wizard_level VARCHAR2(100) default 'nowizard' NOT NULL, macros CLOB default '', + critical_instructions CLOB default '', + warning_instructions CLOB default '', + unknown_instructions CLOB default '', CONSTRAINT t_agente_modulo_wizard_level_cons CHECK (wizard_level IN ('basic','advanced','custom','nowizard')) ); CREATE INDEX tagente_modulo_id_agente_idx ON tagente_modulo(id_agente); diff --git a/pandora_console/pandoradb.postgreSQL.sql b/pandora_console/pandoradb.postgreSQL.sql index 82d6fa555e..21f2eb537b 100644 --- a/pandora_console/pandoradb.postgreSQL.sql +++ b/pandora_console/pandoradb.postgreSQL.sql @@ -189,7 +189,10 @@ CREATE TABLE "tagente_modulo" ( "custom_integer_1" INTEGER default 0, "custom_integer_2" INTEGER default 0, "wizard_level" type_tagente_modulo_wizard_level default 'nowizard', - "macros" TEXT default '' + "macros" TEXT default '', + "critical_instructions" TEXT default '', + "warning_instructions" TEXT default '', + "unknown_instructions" TEXT default '' ); CREATE INDEX "tagente_modulo_id_agente_idx" ON "tagente_modulo"("id_agente"); CREATE INDEX "tagente_modulo_id_tipo_modulo_idx" ON "tagente_modulo"("id_tipo_modulo"); diff --git a/pandora_console/pandoradb.sql b/pandora_console/pandoradb.sql index 95affa29fe..4f5e07f94e 100644 --- a/pandora_console/pandoradb.sql +++ b/pandora_console/pandoradb.sql @@ -208,6 +208,10 @@ CREATE TABLE IF NOT EXISTS `tagente_modulo` ( `custom_integer_2` int(10) default 0, `wizard_level` enum('basic','advanced','custom','nowizard') default 'nowizard', `macros` text, + `critical_instructions` text, + `warning_instructions` text, + `unknown_instructions` text, + PRIMARY KEY (`id_agente_modulo`), KEY `main_idx` (`id_agente_modulo`,`id_agente`), KEY `tam_agente` (`id_agente`),