diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index cda3080eaa..44a19733b5 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,10 @@ +2012-02-16 Juan Manuel Ramon + + * 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: Added + 'tevento_fields' row in tconfig table. + 2012-02-16 Vanessa Gil * operation/events/events_list: Changed extended info to event list. diff --git a/pandora_console/extras/pandoradb_migrate_4.0.x_to_4.1.mysql.sql b/pandora_console/extras/pandoradb_migrate_4.0.x_to_4.1.mysql.sql index c8ba1c57e9..64162582c4 100644 --- a/pandora_console/extras/pandoradb_migrate_4.0.x_to_4.1.mysql.sql +++ b/pandora_console/extras/pandoradb_migrate_4.0.x_to_4.1.mysql.sql @@ -155,5 +155,6 @@ PRIMARY KEY (`id_filter`) ALTER TABLE tconfig MODIFY value TEXT NOT NULL; --Join the all ips of "list_ACL_IPs_for_API_%" in one row (now We have a field "value" with hudge size) INSERT INTO tconfig (token, `value`) SELECT 'list_ACL_IPs_for_API', GROUP_CONCAT(`value` SEPARATOR ';') AS `value` FROM tconfig WHERE token LIKE "list_ACL_IPs_for_API%"; +INSERT INTO `tconfig` (`token`, `value`) VALUES ('event_fields', 'evento,id_agente,estado,timestamp'); DELETE FROM tconfig WHERE token LIKE "list_ACL_IPs_for_API_%"; diff --git a/pandora_console/extras/pandoradb_migrate_4.0.x_to_4.1.oracle.sql b/pandora_console/extras/pandoradb_migrate_4.0.x_to_4.1.oracle.sql index efa432ea1c..14b2df8941 100644 --- a/pandora_console/extras/pandoradb_migrate_4.0.x_to_4.1.oracle.sql +++ b/pandora_console/extras/pandoradb_migrate_4.0.x_to_4.1.oracle.sql @@ -147,3 +147,4 @@ CREATE TABLE tevent_filter ( -- Table `tconfig` -- ----------------------------------------------------- ALTER TABLE tconfig MODIFY value TEXT NOT NULL; +INSERT INTO tconfig (token, value) VALUES ('event_fields', 'evento,id_agente,estado,timestamp'); diff --git a/pandora_console/extras/pandoradb_migrate_4.0.x_to_4.1.postgreSQL.sql b/pandora_console/extras/pandoradb_migrate_4.0.x_to_4.1.postgreSQL.sql index 6b135e07ae..e080803b7d 100644 --- a/pandora_console/extras/pandoradb_migrate_4.0.x_to_4.1.postgreSQL.sql +++ b/pandora_console/extras/pandoradb_migrate_4.0.x_to_4.1.postgreSQL.sql @@ -134,3 +134,4 @@ CREATE TABLE "tevent_filter" ( 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');