diff --git a/pandora_console/extras/pandoradb_migrate_5.1_to_6.0.mysql.sql b/pandora_console/extras/pandoradb_migrate_5.1_to_6.0.mysql.sql index b7dfbe8f52..1956e83df0 100644 --- a/pandora_console/extras/pandoradb_migrate_5.1_to_6.0.mysql.sql +++ b/pandora_console/extras/pandoradb_migrate_5.1_to_6.0.mysql.sql @@ -178,3 +178,13 @@ ALTER TABLE tagente_modulo ADD COLUMN `prediction_threshold` int(4) default 0; -- --------------------------------------------------------------------- ALTER TABLE tagente_estado ADD COLUMN `last_dynamic_update` bigint(20) NOT NULL default '0'; +-- --------------------------------------------------------------------- +-- Table `tgraph_source` +-- --------------------------------------------------------------------- +ALTER TABLE tgraph_source ADD COLUMN `label` varchar(150) DEFAULT ''; + + -- --------------------------------------------------------------------- +--- Table `tevent_filter` +--- --------------------------------------------------------------------- +-ALTER TABLE tevent_filter ADD COLUMN `id_agent_module` int(25) DEFAULT 0; +-ALTER TABLE tevent_filter ADD COLUMN `id_agent` int(25) DEFAULT 0; diff --git a/pandora_console/extras/pandoradb_migrate_5.1_to_6.0.oracle.sql b/pandora_console/extras/pandoradb_migrate_5.1_to_6.0.oracle.sql index a8174cdf7c..8531f7ab8a 100755 --- a/pandora_console/extras/pandoradb_migrate_5.1_to_6.0.oracle.sql +++ b/pandora_console/extras/pandoradb_migrate_5.1_to_6.0.oracle.sql @@ -123,4 +123,9 @@ UPDATE `tnetwork_component` set `tcp_port`=0 WHERE id_nc=219; -- Table `tevent_filter` -- --------------------------------------------------------------------- ALTER TABLE tevent_filter ADD COLUMN id_agent_module int(25) DEFAULT 0; -ALTER TABLE tevent_filter ADD COLUMN id_agent int(25) DEFAULT 0; \ No newline at end of file +ALTER TABLE tevent_filter ADD COLUMN id_agent int(25) DEFAULT 0; + +-- --------------------------------------------------------------------- +-- Table `tgraph_source` +-- --------------------------------------------------------------------- +ALTER TABLE tgraph_source ADD COLUMN label VARCHAR2(150) DEFAULT ''; \ No newline at end of file diff --git a/pandora_console/pandoradb.oracle.sql b/pandora_console/pandoradb.oracle.sql index ff6237eef5..65a0163688 100755 --- a/pandora_console/pandoradb.oracle.sql +++ b/pandora_console/pandoradb.oracle.sql @@ -1195,7 +1195,8 @@ CREATE TABLE tgraph_source ( id_gs NUMBER(10, 0) PRIMARY KEY, id_graph NUMBER(19, 0) DEFAULT 0, id_agent_module NUMBER(19, 0) DEFAULT 0, - weight BINARY_DOUBLE DEFAULT 0 + weight BINARY_DOUBLE DEFAULT 0, + label VARCHAR2(150) DEFAULT '' ); CREATE SEQUENCE tgraph_source_s INCREMENT BY 1 START WITH 1; diff --git a/pandora_console/pandoradb.sql b/pandora_console/pandoradb.sql index 90e6728a55..de3b14d374 100755 --- a/pandora_console/pandoradb.sql +++ b/pandora_console/pandoradb.sql @@ -1073,6 +1073,7 @@ CREATE TABLE IF NOT EXISTS `tgraph_source` ( `id_graph` int(11) NOT NULL default 0, `id_agent_module` int(11) NOT NULL default 0, `weight` float(8,3) NOT NULL DEFAULT 0, + `label` varchar(150) DEFAULT '', PRIMARY KEY(`id_gs`) ) ENGINE = InnoDB DEFAULT CHARSET=utf8;