diff --git a/pandora_console/extras/pandoradb_migrate_6.0_to_6.1.mysql.sql b/pandora_console/extras/pandoradb_migrate_6.0_to_6.1.mysql.sql index be989616d2..ebdec88468 100644 --- a/pandora_console/extras/pandoradb_migrate_6.0_to_6.1.mysql.sql +++ b/pandora_console/extras/pandoradb_migrate_6.0_to_6.1.mysql.sql @@ -106,4 +106,9 @@ ALTER TABLE tnetwork_component ADD COLUMN `dynamic_interval` int(4) unsigned def ALTER TABLE tnetwork_component ADD COLUMN `dynamic_max` int(4) default '0'; ALTER TABLE tnetwork_component ADD COLUMN `dynamic_min` int(4) default '0'; ALTER TABLE tnetwork_component ADD COLUMN `dynamic_next` bigint(20) NOT NULL default '0'; -ALTER TABLE tnetwork_component ADD COLUMN `dynamic_two_tailed` tinyint(1) unsigned default '0'; \ No newline at end of file +ALTER TABLE tnetwork_component ADD COLUMN `dynamic_two_tailed` tinyint(1) unsigned default '0'; + +-- --------------------------------------------------------------------- +-- Table `tagente` +-- --------------------------------------------------------------------- +ALTER TABLE tagente ADD `transactional_agent` tinyint(1) NOT NULL default 0; \ No newline at end of file diff --git a/pandora_console/extras/pandoradb_migrate_6.0_to_6.1.oracle.sql b/pandora_console/extras/pandoradb_migrate_6.0_to_6.1.oracle.sql index 51c82229be..52f7e80428 100644 --- a/pandora_console/extras/pandoradb_migrate_6.0_to_6.1.oracle.sql +++ b/pandora_console/extras/pandoradb_migrate_6.0_to_6.1.oracle.sql @@ -84,4 +84,9 @@ ALTER TABLE tnetwork_component ADD COLUMN dynamic_interval int(4) unsigned defau ALTER TABLE tnetwork_component ADD COLUMN dynamic_max int(4) default '0'; ALTER TABLE tnetwork_component ADD COLUMN dynamic_min int(4) default '0'; ALTER TABLE tnetwork_component ADD COLUMN dynamic_next bigint(20) NOT NULL default '0'; -ALTER TABLE tnetwork_component ADD COLUMN dynamic_two_tailed tinyint(1) unsigned default '0'; \ No newline at end of file +ALTER TABLE tnetwork_component ADD COLUMN dynamic_two_tailed tinyint(1) unsigned default '0'; + +-- --------------------------------------------------------------------- +-- Table `tagente` +-- --------------------------------------------------------------------- +ALTER TABLE tagente ADD transactional_agent tinyint(1) NOT NULL default 0; \ No newline at end of file diff --git a/pandora_console/extras/pandoradb_migrate_6.0_to_6.1.postgreSQL.sql b/pandora_console/extras/pandoradb_migrate_6.0_to_6.1.postgreSQL.sql index e91a0f6f67..5c272ea929 100644 --- a/pandora_console/extras/pandoradb_migrate_6.0_to_6.1.postgreSQL.sql +++ b/pandora_console/extras/pandoradb_migrate_6.0_to_6.1.postgreSQL.sql @@ -21,4 +21,9 @@ ALTER TABLE tnetwork_component ADD COLUMN dynamic_interval int(4) unsigned defau ALTER TABLE tnetwork_component ADD COLUMN dynamic_max int(4) default 0; ALTER TABLE tnetwork_component ADD COLUMN dynamic_min int(4) default 0; ALTER TABLE tnetwork_component ADD COLUMN dynamic_next bigint(20) NOT NULL default 0; -ALTER TABLE tnetwork_component ADD COLUMN dynamic_two_tailed tinyint(1) unsigned default 0; \ No newline at end of file +ALTER TABLE tnetwork_component ADD COLUMN dynamic_two_tailed tinyint(1) unsigned default 0; + +-- --------------------------------------------------------------------- +-- Table `tagente` +-- --------------------------------------------------------------------- +ALTER TABLE tagente ADD transactional_agent tinyint(1) NOT NULL default 0; \ No newline at end of file diff --git a/pandora_console/pandoradb.oracle.sql b/pandora_console/pandoradb.oracle.sql index c3e45cfcde..c4f895435e 100644 --- a/pandora_console/pandoradb.oracle.sql +++ b/pandora_console/pandoradb.oracle.sql @@ -106,7 +106,8 @@ CREATE TABLE tagente ( total_count NUMBER(20, 0) DEFAULT 0, fired_count NUMBER(20, 0) DEFAULT 0, update_module_count NUMBER(5, 0) DEFAULT 0, - update_alert_count NUMBER(5, 0) DEFAULT 0 + update_alert_count NUMBER(5, 0) DEFAULT 0, + transactional_agent NUMBER(5,0) DEFAULT 0 ); CREATE INDEX tagente_nombre_idx ON tagente(nombre); CREATE INDEX tagente_direccion_idx ON tagente(direccion); diff --git a/pandora_console/pandoradb.postgreSQL.sql b/pandora_console/pandoradb.postgreSQL.sql index b443de4226..7d1bc73084 100644 --- a/pandora_console/pandoradb.postgreSQL.sql +++ b/pandora_console/pandoradb.postgreSQL.sql @@ -87,7 +87,8 @@ CREATE TABLE "tagente" ( "total_count" INTEGER NOT NULL default 0, "fired_count" INTEGER NOT NULL default 0, "update_module_count" SMALLINT NOT NULL DEFAULT 1, - "update_alert_count" SMALLINT NOT NULL DEFAULT 1 + "update_alert_count" SMALLINT NOT NULL DEFAULT 1, + "transactional_agent" SMALLINT NOT NULL DEFAULT 0 ); CREATE INDEX "tagente_nombre_idx" ON "tagente"("nombre"); CREATE INDEX "tagente_direccion_idx" ON "tagente"("direccion"); diff --git a/pandora_console/pandoradb.sql b/pandora_console/pandoradb.sql index 2748bf7c4c..4780ede8c9 100644 --- a/pandora_console/pandoradb.sql +++ b/pandora_console/pandoradb.sql @@ -80,6 +80,7 @@ CREATE TABLE IF NOT EXISTS `tagente` ( `fired_count` bigint(20) NOT NULL default '0', `update_module_count` tinyint(1) NOT NULL default '0', `update_alert_count` tinyint(1) NOT NULL default '0', + `transactional_agent` tinyint(1) NOT NULL default '0', PRIMARY KEY (`id_agente`), KEY `nombre` (`nombre`(255)), KEY `direccion` (`direccion`),