Commit 37aaf074 authored by moodler's avatar moodler
Browse files

Change all the lang fields to 10 characters ... to make room for utf

versions.
parent 7e2bd144
......@@ -730,6 +730,12 @@ function main_upgrade($oldversion=0) {
rebuild_course_cache();
}
if ($oldversion < 2004042700) {
table_column("user", "lang", "lang", "varchar", "10", "", "en");
table_column("groups", "lang", "lang", "varchar", "10", "", "");
table_column("course", "lang", "lang", "varchar", "10", "", "");
}
return $result;
}
......
......@@ -54,7 +54,7 @@ CREATE TABLE `prefix_course` (
`visible` int(10) unsigned NOT NULL default '1',
`groupmode` int(4) unsigned NOT NULL default '0',
`groupmodeforce` int(4) unsigned NOT NULL default '0',
`lang` varchar(5) NOT NULL default '',
`lang` varchar(10) NOT NULL default '',
`timecreated` int(10) unsigned NOT NULL default '0',
`timemodified` int(10) unsigned NOT NULL default '0',
PRIMARY KEY (`id`),
......@@ -319,7 +319,7 @@ CREATE TABLE `prefix_user` (
`address` varchar(70) default NULL,
`city` varchar(20) default NULL,
`country` char(2) default NULL,
`lang` char(5) default 'en',
`lang` varchar(10) default 'en',
`timezone` float NOT NULL default '99',
`firstaccess` int(10) unsigned NOT NULL default '0',
`lastaccess` int(10) unsigned NOT NULL default '0',
......
......@@ -475,6 +475,12 @@ function main_upgrade($oldversion=0) {
rebuild_course_cache();
}
if ($oldversion < 2004042700) {
table_column("user", "lang", "lang", "varchar", "10", "", "en");
table_column("groups", "lang", "lang", "varchar", "10", "", "");
table_column("course", "lang", "lang", "varchar", "10", "", "");
}
return $result;
}
......
......@@ -32,7 +32,7 @@ CREATE TABLE prefix_course (
visible integer NOT NULL default '1',
groupmode integer NOT NULL default '0',
groupmodeforce integer NOT NULL default '0',
lang varchar(5) NOT NULL default '',
lang varchar(10) NOT NULL default '',
timecreated integer NOT NULL default '0',
timemodified integer NOT NULL default '0'
);
......@@ -209,7 +209,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 '',
lang varchar(10) NOT NULL default '',
timezone float NOT NULL default '99',
firstaccess integer NOT NULL default '0',
lastaccess integer NOT NULL default '0',
......
......@@ -5,7 +5,7 @@
// database to determine whether upgrades should
// be performed (see lib/db/*.php)
$version = 2004042600; // The current version is a date (YYYYMMDDXX)
$version = 2004042700; // The current version is a date (YYYYMMDDXX)
$release = "1.3 development"; // User-friendly version number
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment