From: martin Date: Sat, 21 Sep 2002 08:42:05 +0000 (+0000) Subject: Need more room for language variable (eg pt_br) X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=93e0f85d6c7469a7c2eb1b89f9646f1f9dfb417b;p=moodle.git Need more room for language variable (eg pt_br) --- diff --git a/version.php b/version.php index e544f0dbce..32209a85a3 100644 --- a/version.php +++ b/version.php @@ -18,7 +18,7 @@ // If there's something it cannot do itself, it // will tell you what you need to do. -$version = 2002091900; // The current version is a date (YYYYMMDDXX) where +$version = 2002092000; // The current version is a date (YYYYMMDDXX) where // XX is a number that increments during the day $release = "1.0.5 dev"; // For humans only, not used for the upgrade process @@ -74,6 +74,9 @@ function upgrade_moodle($oldversion=0) { notify("Most Moodle configuration variables have been moved to the database and can now be edited via the admin page."); notify("Although it is not vital that you do so, you might want to edit config.php and remove all the unused settings (except the database, URL and directory definitions). See config-dist.php for an example of how your new slim config.php should look."); } + if ($oldversion < 2002092000) { + execute_sql(" ALTER TABLE `user` CHANGE `lang` `lang` VARCHAR(5) DEFAULT 'en' NOT NULL "); + } return true; }