Fixing a typo in metacourses in mysql (id should be int 10 not int 1). Hopefully this is the end of it :(

This commit is contained in:
mjollnir_ 2005-01-27 20:41:54 +00:00
parent 483b71581d
commit a22fd258aa
3 changed files with 8 additions and 3 deletions

View File

@ -1126,7 +1126,7 @@ function main_upgrade($oldversion=0) {
// add new table for meta courses.
modify_database("","CREATE TABLE `prefix_course_meta` (
`id` int(1) unsigned NOT NULL auto_increment,
`id` int(10) unsigned NOT NULL auto_increment,
`parent_course` int(10) NOT NULL default 0,
`child_course` int(10) NOT NULL default 0,
PRIMARY KEY (`id`),
@ -1137,6 +1137,11 @@ function main_upgrade($oldversion=0) {
table_column('course','','metacourse','integer','1','','0','not null');
}
if ($oldversion < 2005012800) {
// fix a typo (int 1 becomes int 10)
table_column('course_meta','id','id','integer','10','','0','not null');
}
return $result;
}

View File

@ -552,7 +552,7 @@ CREATE TABLE `prefix_user_coursecreators` (
CREATE TABLE `prefix_course_meta` (
`id` int(1) unsigned NOT NULL auto_increment,
`id` int(10) unsigned NOT NULL auto_increment,
`parent_course` int(10) NOT NULL default 0,
`child_course` int(10) NOT NULL default 0,
PRIMARY KEY (`id`),

View File

@ -6,7 +6,7 @@
// This is compared against the values stored in the database to determine
// whether upgrades should be performed (see lib/db/*.php)
$version = 2005012501; // YYYYMMDD = date of first major branch release 1.4
$version = 2005012800; // YYYYMMDD = date of first major branch release 1.4
// XY = increments within a single day
$release = '1.5 UNSTABLE DEVELOPMENT'; // Human-friendly version name