From 06d7ae7d34147f598d4500c95754b3ff81e5278a Mon Sep 17 00:00:00 2001
From: ramonn <noreply@pandorafms.org>
Date: Tue, 18 Sep 2012 09:46:05 +0000
Subject: [PATCH] 2012-09-18  Ramon Novoa  <rnovoa@artica.es>

	* pandoradb.postgreSQL.sql,
	  pandoradb.oracle.sql: Added inverse critical and warning intervals to
	  the Oracle and PostgreSQL database schemas.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6982 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
---
 pandora_console/ChangeLog                | 6 ++++++
 pandora_console/pandoradb.oracle.sql     | 4 ++++
 pandora_console/pandoradb.postgreSQL.sql | 8 ++++++--
 3 files changed, 16 insertions(+), 2 deletions(-)

diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog
index 2ce88ba28f..00857478e1 100644
--- a/pandora_console/ChangeLog
+++ b/pandora_console/ChangeLog
@@ -1,3 +1,9 @@
+2012-09-18  Ramon Novoa  <rnovoa@artica.es>
+
+	* pandoradb.postgreSQL.sql,
+	  pandoradb.oracle.sql: Added inverse critical and warning intervals to
+	  the Oracle and PostgreSQL database schemas.
+
 2012-09-18  Vanessa Gil <vanessa.gil@artica.es>
 
 	* include/functions_api.php: Fixed bug creating
diff --git a/pandora_console/pandoradb.oracle.sql b/pandora_console/pandoradb.oracle.sql
index 31960ad7a0..7a23969b13 100644
--- a/pandora_console/pandoradb.oracle.sql
+++ b/pandora_console/pandoradb.oracle.sql
@@ -232,6 +232,8 @@ CREATE TABLE tagente_modulo (
 	critical_instructions VARCHAR2(255) default '',
 	warning_instructions VARCHAR2(255) default '',
 	unknown_instructions VARCHAR2(255) default '',
+	critical_inverse NUMBER(1, 0) default 0 NOT NULL,
+	warning_inverse NUMBER(1, 0) default 0 NOT NULL,
 	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);
@@ -682,6 +684,8 @@ CREATE TABLE tnetwork_component (
 	critical_instructions VARCHAR2(255) default '',
 	warning_instructions VARCHAR2(255) default '',
 	unknown_instructions VARCHAR2(255) default '',
+	critical_inverse NUMBER(1, 0) default 0 NOT NULL,
+	warning_inverse NUMBER(1, 0) default 0 NOT NULL,
 	CONSTRAINT t_network_component_wizard_level_cons CHECK (wizard_level IN ('basic','advanced','custom','nowizard'))
 );
 
diff --git a/pandora_console/pandoradb.postgreSQL.sql b/pandora_console/pandoradb.postgreSQL.sql
index 1d54b71427..6f00710646 100644
--- a/pandora_console/pandoradb.postgreSQL.sql
+++ b/pandora_console/pandoradb.postgreSQL.sql
@@ -220,7 +220,9 @@ CREATE TABLE "tagente_modulo" (
 	"critical_instructions" TEXT default '',
     "warning_instructions" TEXT default '',
     "unknown_instructions" TEXT default '',
-    "quiet" SMALLINT NOT NULL default 0
+    "quiet" SMALLINT NOT NULL default 0,
+	"critical_inverse" SMALLINT NOT NULL default 0,
+	"warning_inverse" SMALLINT NOT NULL default 0
 );
 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");
@@ -558,7 +560,9 @@ CREATE TABLE "tnetwork_component" (
 	"macros" TEXT default '',
 	"critical_instructions" TEXT default '',
 	"warning_instructions" TEXT default '',
-	"unknown_instructions" TEXT default ''
+	"unknown_instructions" TEXT default '',
+	"critical_inverse" SMALLINT NOT NULL default 0,
+	"warning_inverse" SMALLINT NOT NULL default 0
 );
 
 CREATE TABLE "tnetwork_component_group" (