MDL-37155 fix course sortorder to prevent problems in later unsigned migration

This commit is contained in:
Petr Škoda
2013-01-26 11:11:48 +01:00
parent 8c40b4ea9d
commit 0c39b19942
2 changed files with 8 additions and 1 deletions
+7
View File
@@ -7261,5 +7261,12 @@ FROM
upgrade_main_savepoint(true, 2011120506.06);
}
if ($oldversion < 2011120507.03) {
// Make sure the sortorder is not above the unsigned integer MySQL range.
fix_course_sortorder();
// Main savepoint reached.
upgrade_main_savepoint(true, 2011120507.03);
}
return true;
}
+1 -1
View File
@@ -30,7 +30,7 @@
defined('MOODLE_INTERNAL') || die();
$version = 2011120507.02; // 20111205 = branching date YYYYMMDD - do not modify!
$version = 2011120507.03; // 20111205 = branching date YYYYMMDD - do not modify!
// RR = release increments - 00 in DEV branches
// .XX = incremental changes