Merged from MOODLE_14_HEAD - Better behaviour of fix_course_sortorder() -- related to bug #2334 -- includes version bump to clear out recalcitrant sortorders

This commit is contained in:
martinlanghoff 2005-02-01 01:47:45 +00:00
parent 94afadb360
commit 4c3911f934
3 changed files with 9 additions and 1 deletions

View File

@ -1142,6 +1142,10 @@ function main_upgrade($oldversion=0) {
table_column('course_meta','id','id','integer','10','','0','not null');
}
if ($oldversion < 2005020100) {
fix_course_sortorder(0, 1, 1);
}
return $result;
}

View File

@ -907,6 +907,10 @@ function main_upgrade($oldversion=0) {
table_column('course','','metacourse','integer','1','','0','not null');
}
if ($oldversion < 2005020100) {
fix_course_sortorder(0, 1, 1);
}
return $result;
}

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 = 2005012800; // YYYYMMDD = date of first major branch release 1.4
$version = 2005020100; // YYYYMMDD = date of first major branch release 1.4
// XY = increments within a single day
$release = '1.5 UNSTABLE DEVELOPMENT'; // Human-friendly version name