From 7277e306844c5bbdeed4a7dcf170b62191cd8d14 Mon Sep 17 00:00:00 2001 From: moodler Date: Sun, 7 Mar 2004 14:10:11 +0000 Subject: [PATCH] Update Czech users and courses to use new language pack --- lib/db/mysql.php | 5 +++++ lib/db/postgres7.php | 5 +++++ version.php | 2 +- 3 files changed, 11 insertions(+), 1 deletion(-) diff --git a/lib/db/mysql.php b/lib/db/mysql.php index b5cb9775564..90eb2209cad 100644 --- a/lib/db/mysql.php +++ b/lib/db/mysql.php @@ -716,6 +716,11 @@ function main_upgrade($oldversion=0) { } } + if ($oldversion < 2004030701) { /// Because of the renaming of Czech language pack + modify_database("", "UPDATE prefix_user SET lang = 'cs' WHERE lang = 'cz'"); + modify_database("", "UPDATE prefix_course SET lang = 'cs' WHERE lang = 'cz'"); + } + return $result; } diff --git a/lib/db/postgres7.php b/lib/db/postgres7.php index 30969d17383..7785b6abd9c 100644 --- a/lib/db/postgres7.php +++ b/lib/db/postgres7.php @@ -461,6 +461,11 @@ function main_upgrade($oldversion=0) { } } + if ($oldversion < 2004030701) { /// Because of the renaming of Czech language pack + modify_database("", "UPDATE prefix_user SET lang = 'cs' WHERE lang = 'cz'"); + modify_database("", "UPDATE prefix_course SET lang = 'cs' WHERE lang = 'cz'"); + } + return $result; } diff --git a/version.php b/version.php index d6d0da71336..975b415b400 100644 --- a/version.php +++ b/version.php @@ -5,7 +5,7 @@ // database to determine whether upgrades should // be performed (see lib/db/*.php) -$version = 2004030700; // The current version is a date (YYYYMMDDXX) +$version = 2004030701; // The current version is a date (YYYYMMDDXX) $release = "1.2 Beta +"; // User-friendly version number