From 15c42f53e67f29c90fe335ad7a635bc6e1a7c415 Mon Sep 17 00:00:00 2001 From: juanmanuelr Date: Tue, 14 Feb 2012 15:38:05 +0000 Subject: [PATCH] 2012-02-13 Juan Manuel Ramon * extras/pandoradb_migrate_4.0.x_to_4.1.postgreSQL.sql: Migrate tconfig ACL list. Pending to change it in Oracle. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@5597 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f --- pandora_console/ChangeLog | 5 +++++ .../extras/pandoradb_migrate_4.0.x_to_4.1.postgreSQL.sql | 4 +++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index ffb09fc9df..83f659f9f4 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,8 @@ +2012-02-13 Juan Manuel Ramon + + * extras/pandoradb_migrate_4.0.x_to_4.1.postgreSQL.sql: Migrate + tconfig ACL list. Pending to change it in Oracle. + 2012-02-14 Miguel de Dios * ChangeLog: uploaded lost lines to repository. I am sorry. 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 9eed8e0f03..6b135e07ae 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 @@ -131,4 +131,6 @@ CREATE TABLE "tevent_filter" ( -- ----------------------------------------------------- -- Table `tconfig` -- ----------------------------------------------------- -ALTER TABLE "tconfig" ALTER COLUMN "value" TEXT; +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";