From ea3f69bba533b1b509531da4204baed033bdb919 Mon Sep 17 00:00:00 2001 From: zarzuelo Date: Mon, 9 Dec 2013 11:20:14 +0000 Subject: [PATCH] 2013-12-09 Sergio Martin * extras/pandoradb_migrate_4.1_to_5.0.postgreSQL.sql extras/pandoradb_migrate_4.1_to_5.0.mysql.sql extras/pandoradb_migrate_4.1_to_5.0.oracle.sql extras/pandoradb_migrate_4.0.x_to_5.0.postgreSQL.sql extras/pandoradb_migrate_4.0.x_to_5.0.mysql.sql extras/pandoradb_migrate_4.0.x_to_5.0.oracle.sql: Add to the migration scripts a query to set default theme when update from 4.x to 5 version. It prevents from ugly layouts due not supported themes. Incident #421 git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@9192 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f --- pandora_console/ChangeLog | 12 ++++++++++++ .../extras/pandoradb_migrate_4.0.x_to_5.0.mysql.sql | 6 ++++++ .../extras/pandoradb_migrate_4.0.x_to_5.0.oracle.sql | 5 +++++ .../pandoradb_migrate_4.0.x_to_5.0.postgreSQL.sql | 5 +++++ .../extras/pandoradb_migrate_4.1_to_5.0.mysql.sql | 4 ++++ .../extras/pandoradb_migrate_4.1_to_5.0.oracle.sql | 5 +++++ .../pandoradb_migrate_4.1_to_5.0.postgreSQL.sql | 5 +++++ 7 files changed, 42 insertions(+) diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index 7429c90dbe..a9e8ddc52a 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,15 @@ +2013-12-09 Sergio Martin + + * extras/pandoradb_migrate_4.1_to_5.0.postgreSQL.sql + extras/pandoradb_migrate_4.1_to_5.0.mysql.sql + extras/pandoradb_migrate_4.1_to_5.0.oracle.sql + extras/pandoradb_migrate_4.0.x_to_5.0.postgreSQL.sql + extras/pandoradb_migrate_4.0.x_to_5.0.mysql.sql + extras/pandoradb_migrate_4.0.x_to_5.0.oracle.sql: Add to the + migration scripts a query to set default theme when update + from 4.x to 5 version. It prevents from ugly layouts due + not supported themes. Incident #421 + 2013-12-05 Miguel de Dios * include/functions_api.php: fixed the get events filtered by group. diff --git a/pandora_console/extras/pandoradb_migrate_4.0.x_to_5.0.mysql.sql b/pandora_console/extras/pandoradb_migrate_4.0.x_to_5.0.mysql.sql index 3c7cfac621..fba431c120 100644 --- a/pandora_console/extras/pandoradb_migrate_4.0.x_to_5.0.mysql.sql +++ b/pandora_console/extras/pandoradb_migrate_4.0.x_to_5.0.mysql.sql @@ -1154,3 +1154,9 @@ DELETE FROM `tlanguage` WHERE id_language IN ('ast', 'eu', 'bn', 'bg', 'ca', 'da DELETE FROM `tlanguage` WHERE id_language IN ('zh_TW'); INSERT INTO `tlanguage` (`id_language`, `name`) VALUES ('ca','Catalan'); UPDATE `tlanguage` SET `name` = 'English (UK)' WHERE `id_language` = 'en_GB'; + + +-- --------------------------------------------------------------------- +-- Set the default style +-- --------------------------------------------------------------------- +UPDATE tconfig SET value = 'pandora' WHERE token = 'style'; diff --git a/pandora_console/extras/pandoradb_migrate_4.0.x_to_5.0.oracle.sql b/pandora_console/extras/pandoradb_migrate_4.0.x_to_5.0.oracle.sql index 0bdd547e89..7845daa8b8 100644 --- a/pandora_console/extras/pandoradb_migrate_4.0.x_to_5.0.oracle.sql +++ b/pandora_console/extras/pandoradb_migrate_4.0.x_to_5.0.oracle.sql @@ -1161,3 +1161,8 @@ DELETE FROM tlanguage WHERE id_language IN ('ast', 'eu', 'bn', 'bg', 'ca', 'da', DELETE FROM tlanguage WHERE id_language IN ('zh_TW'); INSERT INTO tlanguage (`id_language`, `name`) VALUES ('ca','Catalan'); UPDATE tlanguage SET name = 'English (UK)' WHERE id_language = 'en_GB'; + +-- --------------------------------------------------------------------- +-- Set the default style +-- --------------------------------------------------------------------- +UPDATE tconfig SET value = 'pandora' WHERE token = 'style'; diff --git a/pandora_console/extras/pandoradb_migrate_4.0.x_to_5.0.postgreSQL.sql b/pandora_console/extras/pandoradb_migrate_4.0.x_to_5.0.postgreSQL.sql index 33d3762660..a4376367bb 100644 --- a/pandora_console/extras/pandoradb_migrate_4.0.x_to_5.0.postgreSQL.sql +++ b/pandora_console/extras/pandoradb_migrate_4.0.x_to_5.0.postgreSQL.sql @@ -1145,3 +1145,8 @@ DELETE FROM "tlanguage" WHERE "id_language" IN ('ast', 'eu', 'bn', 'bg', 'ca', ' DELETE FROM "tlanguage" WHERE "id_language" IN ('zh_TW'); INSERT INTO "tlanguage" ("id_language", "name") VALUES ('ca','Catalan'); UPDATE "tlanguage" SET "name" = 'English (UK)' WHERE "id_language" = 'en_GB'; + +-- --------------------------------------------------------------------- +-- Set the default style +UPDATE tconfig SET value = "pandora" WHERE token = "style"; +-- --------------------------------------------------------------------- diff --git a/pandora_console/extras/pandoradb_migrate_4.1_to_5.0.mysql.sql b/pandora_console/extras/pandoradb_migrate_4.1_to_5.0.mysql.sql index 776360f661..7556e25353 100644 --- a/pandora_console/extras/pandoradb_migrate_4.1_to_5.0.mysql.sql +++ b/pandora_console/extras/pandoradb_migrate_4.1_to_5.0.mysql.sql @@ -1153,3 +1153,7 @@ DELETE FROM tlanguage WHERE id_language IN ('zh_TW'); INSERT INTO tlanguage (`id_language`, `name`) VALUES ('ca','Catalan'); UPDATE `tlanguage` SET `name` = 'English (UK)' WHERE `id_language` = 'en_GB'; +-- --------------------------------------------------------------------- +-- Set the default style +-- --------------------------------------------------------------------- +UPDATE tconfig SET value = 'pandora' WHERE token = 'style'; diff --git a/pandora_console/extras/pandoradb_migrate_4.1_to_5.0.oracle.sql b/pandora_console/extras/pandoradb_migrate_4.1_to_5.0.oracle.sql index 0251ba6636..fcf1f2fc3f 100644 --- a/pandora_console/extras/pandoradb_migrate_4.1_to_5.0.oracle.sql +++ b/pandora_console/extras/pandoradb_migrate_4.1_to_5.0.oracle.sql @@ -1159,3 +1159,8 @@ DELETE FROM tlanguage WHERE id_language IN ('ast', 'eu', 'bn', 'bg', 'ca', 'da', DELETE FROM tlanguage WHERE id_language IN ('zh_TW'); INSERT INTO tlanguage (`id_language`, `name`) VALUES ('ca','Catalan'); UPDATE tlanguage SET name = 'English (UK)' WHERE id_language = 'en_GB'; + +-- --------------------------------------------------------------------- +-- Set the default style +-- --------------------------------------------------------------------- +UPDATE tconfig SET value = 'pandora' WHERE token = 'style'; diff --git a/pandora_console/extras/pandoradb_migrate_4.1_to_5.0.postgreSQL.sql b/pandora_console/extras/pandoradb_migrate_4.1_to_5.0.postgreSQL.sql index d2d15ba9ae..714b4a777d 100644 --- a/pandora_console/extras/pandoradb_migrate_4.1_to_5.0.postgreSQL.sql +++ b/pandora_console/extras/pandoradb_migrate_4.1_to_5.0.postgreSQL.sql @@ -1143,3 +1143,8 @@ DELETE FROM "tlanguage" WHERE "id_language" IN ('ast', 'eu', 'bn', 'bg', 'ca', ' DELETE FROM "tlanguage" WHERE "id_language" IN ('zh_TW'); INSERT INTO "tlanguage" ("id_language", "name") VALUES ('ca','Catalan'); UPDATE "tlanguage" SET "name" = 'English (UK)' WHERE "id_language" = 'en_GB'; + +-- --------------------------------------------------------------------- +-- Set the default style +-- --------------------------------------------------------------------- +UPDATE tconfig SET value = "pandora" WHERE token = "style";