2011-06-10 Juan Manuel Ramon <juanmanuel.ramon@artica.es>

* pandoradb.postgreSQL.sql
	pandoradb.oracle.sql
	extras/pandoradb_migrate_v3.2_to_v4.0.sql: New field "tags" in 
	"tevento" table for Oracle, Postgresql and migration script.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4428 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
juanmanuelr 2011-06-10 10:38:16 +00:00
parent 41e6b7ffd4
commit 42bf4f324d
4 changed files with 16 additions and 1 deletions

View File

@ -1,3 +1,10 @@
2011-06-10 Juan Manuel Ramon <juanmanuel.ramon@artica.es>
* pandoradb.postgreSQL.sql
pandoradb.oracle.sql
extras/pandoradb_migrate_v3.2_to_v4.0.sql: New field "tags" in
"tevento" table for Oracle, Postgresql and migration script.
2011-06-10 Juan Manuel Ramon <juanmanuel.ramon@artica.es>
* include/config_process.php: Graph's dependencies now are included

View File

@ -175,3 +175,9 @@ CREATE TABLE IF NOT EXISTS `ttag_event` (
-- -----------------------------------------------------
ALTER TABLE `tagente_modulo` ADD COLUMN (`unit` text DEFAULT '');
-- -----------------------------------------------------
-- Table `tevento`
-- -----------------------------------------------------
ALTER TABLE `tevento` ADD COLUMN (`tags` text NOT NULL);

View File

@ -483,6 +483,7 @@ CREATE TABLE tevento (
id_alert_am NUMBER(10, 0) default 0 NOT NULL,
criticity NUMBER(10, 0) default 0 NOT NULL,
user_comment CLOB,
tags CLOB NOT NULL,
CONSTRAINT tevento_event_type_cons CHECK (event_type IN ('unknown','alert_fired','alert_recovered','alert_ceased','alert_manual_validation','recon_host_detected','system','error','new_agent','going_up_warning','going_up_critical','going_down_warning','going_down_normal','going_down_critical','going_up_normal'))
);
CREATE INDEX tevento_id_1_idx ON tevento(id_agente, id_evento);

View File

@ -387,7 +387,8 @@ CREATE TABLE "tevento" (
"id_agentmodule" INTEGER NOT NULL default 0,
"id_alert_am" INTEGER NOT NULL default 0,
"criticity" INTEGER NOT NULL default 0,
"user_comment" text NOT NULL
"user_comment" text NOT NULL,
"tags" text NOT NULL
);
CREATE INDEX "tevento_id_1_idx" ON "tevento"("id_agente", "id_evento");
CREATE INDEX "tevento_id_2_idx" ON "tevento"("utimestamp", "id_evento");