From: paca70 Date: Sun, 4 May 2003 16:05:59 +0000 (+0000) Subject: Lang column was missing from postgresql-files (?) X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=465fd00e0457b2b15f24b18f5113a4dddd862834;p=moodle.git Lang column was missing from postgresql-files (?) --- diff --git a/lib/db/postgres7.php b/lib/db/postgres7.php index 6227030062..937ff3c0f1 100644 --- a/lib/db/postgres7.php +++ b/lib/db/postgres7.php @@ -142,6 +142,9 @@ function main_upgrade($oldversion=0) { table_column("course_sections", "", "visible", "integer", "1", "unsigned", "1", "", ""); } + if ($oldversion < 2003050401) { + table_column("user", "", "lang", "VARCHAR", "5", "", "$CFG->lang" ,"NOT NULL",""); + } return $result; } ?> diff --git a/lib/db/postgres7.sql b/lib/db/postgres7.sql index 8513496f4b..9883191558 100644 --- a/lib/db/postgres7.sql +++ b/lib/db/postgres7.sql @@ -112,6 +112,7 @@ CREATE TABLE prefix_user ( address varchar(70) default NULL, city varchar(20) default NULL, country char(2) default NULL, + lang varchar(5) NOT NULL default '', timezone float NOT NULL default '99', firstaccess integer NOT NULL default '0', lastaccess integer NOT NULL default '0', diff --git a/version.php b/version.php index 06054e584a..745d178cd3 100644 --- a/version.php +++ b/version.php @@ -5,7 +5,7 @@ // database to determine whether upgrades should // be performed (see lib/db/*.php) -$version = 2003050400; // The current version is a date (YYYYMMDDXX) +$version = 2003050401; // The current version is a date (YYYYMMDDXX) $release = "1.0.9 development"; // User-friendly version number