2012-02-27 Vanessa Gil <vanessa.gil@artica.es>

* pandoradb.sql
	  pandoradb.oracle.sql
	  pandoradb.postgreSQL.sql
	  extras/pandoradb_migrate_4.0.x_to_4.1.mysql.sql
	  extras/pandoradb_migrate_4.0.x_to_4.1.oracle.sql
	  extras/pandoradb_migrate_4.0.x_to_4.1.postgreSQL.sql: Removed
	'tgraph_template' and 'tgraph_source_template' tables.


git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@5647 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
vgilc 2012-02-27 09:42:44 +00:00
parent 6bf853b490
commit 7d85b5066e
7 changed files with 10 additions and 194 deletions

View File

@ -1,3 +1,13 @@
2012-02-27 Vanessa Gil <vanessa.gil@artica.es>
* pandoradb.sql
pandoradb.oracle.sql
pandoradb.postgreSQL.sql
extras/pandoradb_migrate_4.0.x_to_4.1.mysql.sql
extras/pandoradb_migrate_4.0.x_to_4.1.oracle.sql
extras/pandoradb_migrate_4.0.x_to_4.1.postgreSQL.sql: Removed
'tgraph_template' and 'tgraph_source_template' tables.
2012-02-24 Miguel de Dios <miguel.dedios@artica.es>
* pandora_console/include/functions_ui.php: changed the source code into the

View File

@ -158,38 +158,6 @@ INSERT INTO tconfig (token, `value`) SELECT 'list_ACL_IPs_for_API', GROUP_CONCAT
INSERT INTO `tconfig` (`token`, `value`) VALUES ('event_fields', 'evento,id_agente,estado,timestamp');
DELETE FROM tconfig WHERE token LIKE "list_ACL_IPs_for_API_%";
-- -----------------------------------------------------
-- Table `tgraph_template`
-- -----------------------------------------------------
CREATE TABLE IF NOT EXISTS `tgraph_template` (
`id_graph_template` INTEGER UNSIGNED NOT NULL AUTO_INCREMENT,
`id_user` TEXT NOT NULL,
`name` TEXT NOT NULL,
`description` TEXT NOT NULL,
`period` int(11) NOT NULL default '0',
`width` smallint(5) UNSIGNED NOT NULL DEFAULT 0,
`height` smallint(5) UNSIGNED NOT NULL DEFAULT 0,
`private` tinyint(1) UNSIGNED NOT NULL default 0,
`events` tinyint(1) UNSIGNED NOT NULL default 0,
`stacked` tinyint(1) UNSIGNED NOT NULL default 0,
`id_group` mediumint(8) unsigned NULL default 0,
PRIMARY KEY(`id_graph_template`)
) ENGINE = InnoDB DEFAULT CHARSET=utf8;
-- -----------------------------------------------------
-- Table `tgraph_source_template`
-- -----------------------------------------------------
CREATE TABLE IF NOT EXISTS `tgraph_source_template` (
`id_gs_template` INTEGER UNSIGNED NOT NULL AUTO_INCREMENT,
`id_template` int(11) NOT NULL default 0,
`agent` TEXT,
`module` TEXT,
`weight` FLOAT(5,3) NOT NULL DEFAULT 2,
`exact_match` tinyint(1) default 0,
PRIMARY KEY(`id_gs_template`)
) ENGINE = InnoDB DEFAULT CHARSET=utf8;
-- -----------------------------------------------------
-- Table `treport_content_item`
-- -----------------------------------------------------

View File

@ -149,40 +149,6 @@ CREATE TABLE tevent_filter (
ALTER TABLE tconfig MODIFY value TEXT NOT NULL;
INSERT INTO tconfig (token, value) VALUES ('event_fields', 'evento,id_agente,estado,timestamp');
-- -----------------------------------------------------
-- Table `tgraph_template`
-- -----------------------------------------------------
CREATE TABLE tgraph_template (
id_graph_template NUMBER(10, 0) NOT NULL PRIMARY KEY,
id_user VARCHAR2(255) NOT NULL,
name VARCHAR2(255) NOT NULL,
description CLOB default '',
period NUMBER(11, 0) default 0 NOT NULL,
width SMALLINT default 0 NOT NULL,
height SMALLINT default 0 NOT NULL,
private SMALLINT default 0 NOT NULL,
events SMALLINT default 0 NOT NULL,
stacked SMALLINT default 0 NOT NULL,
id_group NUMBER(8, 0) default 0
);
CREATE SEQUENCE tgraph_template_s INCREMENT BY 1 START WITH 1;
-- -----------------------------------------------------
-- Table `tgraph_source_template`
-- -----------------------------------------------------
CREATE tgraph_source_template (
id_gs_template NUMBER(10, 0) NOT NULL PRIMARY KEY,
id_template NUMBER(10, 0) default 0 NOT NULL,
agent VARCHAR2(255),
module VARCHAR2(255),
weight FLOAT(5) DEFAULT 2 NOT NULL;
exact_match SMALLINT default 0 NOT NULL
);
CREATE SEQUENCE tgraph_source_template_s INCREMENT BY 1 START WITH 1;
-- -----------------------------------------------------
-- Table `treport_content_item`
-- -----------------------------------------------------

View File

@ -136,38 +136,6 @@ ALTER TABLE "tconfig" ALTER COLUMN "value" TYPE TEXT;
INSERT INTO tconfig ("token", "value") SELECT 'list_ACL_IPs_for_API', array_to_string(ARRAY(SELECT value FROM tconfig WHERE token LIKE 'list_ACL_IPs_for_API%'), ';') AS "value";
INSERT INTO "tconfig" ("token", "value") VALUES ('event_fields', 'evento,id_agente,estado,timestamp');
-- -----------------------------------------------------
-- Table `tgraph_template`
-- -----------------------------------------------------
CREATE TABLE IF NOT EXISTS "tgraph_template" (
"id_graph_template" SERIAL NOT NULL PRIMARY KEY,
"id_user" TEXT NOT NULL default '',
"name" TEXT NOT NULL default '',
"description" TEXT NOT NULL default '',
"period" INTEGER NOT NULL default 0,
"width" SMALLINT NOT NULL default 0,
"height" SMALLINT NOT NULL default 0,
"private" SMALLINT NOT NULL default 0,
"events" SMALLINT NOT NULL default 0,
"stacked" SMALLINT NOT NULL default 0,
"id_group" INTEGER NOT NULL default 0
);
-- -----------------------------------------------------
-- Table `tgraph_source_template`
-- -----------------------------------------------------
CREATE TABLE IF NOT EXISTS "tgraph_source_template" (
"id_gs_template" SERIAL NOT NULL PRIMARY KEY,
"id_template" INTEGER NOT NULL default 0,
"agent" TEXT NOT NULL default '',
"module" TEXT NOT NULL default '',
"period" INTEGER NOT NULL default 0,
"weight" DOUBLE PRECISION default 2.0,
"exact_match" SMALLINT NOT NULL default 0
);
-- -----------------------------------------------------
-- Table `treport_content_item`
-- -----------------------------------------------------

View File

@ -1578,37 +1578,3 @@ CREATE TABLE tevent_filter (
tag VARCHAR2(600) default '' NOT NULL,
filter_only_alert NUMBER(10, 0) default -1 NOT NULL
);
-- -----------------------------------------------------
-- Table `tgraph_template`
-- -----------------------------------------------------
CREATE TABLE tgraph_template (
id_graph_template NUMBER(10, 0) NOT NULL PRIMARY KEY,
id_user VARCHAR2(255) NOT NULL,
name VARCHAR2(255) NOT NULL,
description CLOB default '',
period NUMBER(11, 0) default 0 NOT NULL,
width SMALLINT default 0 NOT NULL,
height SMALLINT default 0 NOT NULL,
private SMALLINT default 0 NOT NULL,
events SMALLINT default 0 NOT NULL,
stacked SMALLINT default 0 NOT NULL,
id_group NUMBER(8, 0) default 0
);
CREATE SEQUENCE tgraph_template_s INCREMENT BY 1 START WITH 1;
-- -----------------------------------------------------
-- Table `tgraph_source_template`
-- -----------------------------------------------------
CREATE tgraph_source_template (
id_gs_template NUMBER(10, 0) NOT NULL PRIMARY KEY,
id_template NUMBER(10, 0) default 0 NOT NULL,
agent VARCHAR2(255),
module VARCHAR2(255),
weight FLOAT(5) DEFAULT 2 NOT NULL;
exact_match SMALLINT default 0 NOT NULL
);
CREATE SEQUENCE tgraph_source_template_s INCREMENT BY 1 START WITH 1;

View File

@ -1277,35 +1277,4 @@ CREATE TABLE "tevent_filter" (
"filter_only_alert" INTEGER NOT NULL default -1
);
-- -----------------------------------------------------
-- Table `tgraph_template`
-- -----------------------------------------------------
CREATE TABLE IF NOT EXISTS "tgraph_template" (
"id_graph_template" SERIAL NOT NULL PRIMARY KEY,
"id_user" TEXT NOT NULL default '',
"name" TEXT NOT NULL default '',
"description" TEXT NOT NULL default '',
"period" INTEGER NOT NULL default 0,
"width" SMALLINT NOT NULL default 0,
"height" SMALLINT NOT NULL default 0,
"private" SMALLINT NOT NULL default 0,
"events" SMALLINT NOT NULL default 0,
"stacked" SMALLINT NOT NULL default 0,
"id_group" INTEGER NOT NULL default 0
);
-- -----------------------------------------------------
-- Table `tgraph_source_template`
-- -----------------------------------------------------
CREATE TABLE IF NOT EXISTS "tgraph_source_template" (
"id_gs_template" SERIAL NOT NULL PRIMARY KEY,
"id_template" INTEGER NOT NULL default 0,
"agent" TEXT NOT NULL default '',
"module" TEXT NOT NULL default '',
"period" INTEGER NOT NULL default 0,
"weight" DOUBLE PRECISION default 2.0,
"exact_match" SMALLINT NOT NULL default 0
);

View File

@ -1382,34 +1382,3 @@ CREATE TABLE IF NOT EXISTS `tevent_filter` (
PRIMARY KEY (`id_filter`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- -----------------------------------------------------
-- Table `tgraph_template`
-- -----------------------------------------------------
CREATE TABLE IF NOT EXISTS `tgraph_template` (
`id_graph_template` INTEGER UNSIGNED NOT NULL AUTO_INCREMENT,
`id_user` TEXT NOT NULL,
`name` TEXT NOT NULL,
`description` TEXT NOT NULL,
`period` int(11) NOT NULL default '0',
`width` smallint(5) UNSIGNED NOT NULL DEFAULT 0,
`height` smallint(5) UNSIGNED NOT NULL DEFAULT 0,
`private` tinyint(1) UNSIGNED NOT NULL default 0,
`events` tinyint(1) UNSIGNED NOT NULL default 0,
`stacked` tinyint(1) UNSIGNED NOT NULL default 0,
`id_group` mediumint(8) unsigned NULL default 0,
PRIMARY KEY(`id_graph_template`)
) ENGINE = InnoDB DEFAULT CHARSET=utf8;
-- -----------------------------------------------------
-- Table `tgraph_source_template`
-- -----------------------------------------------------
CREATE TABLE IF NOT EXISTS `tgraph_source_template` (
`id_gs_template` INTEGER UNSIGNED NOT NULL AUTO_INCREMENT,
`id_template` int(11) NOT NULL default 0,
`agent` TEXT,
`module` TEXT,
`weight` FLOAT(5,3) NOT NULL DEFAULT 2,
`exact_match` tinyint(1) default 0,
PRIMARY KEY(`id_gs_template`)
) ENGINE = InnoDB DEFAULT CHARSET=utf8;