Skip to content

Commit

Permalink
MDL-37155 fix course sortorder to prevent problems in later unsigned …
Browse files Browse the repository at this point in the history
…migration
  • Loading branch information
skodak committed Jan 26, 2013
1 parent 8c40b4e commit 0c39b19
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions lib/db/upgrade.php
Original file line number Diff line number Diff line change
Expand Up @@ -7261,5 +7261,12 @@ function xmldb_main_upgrade($oldversion) {
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;
}
2 changes: 1 addition & 1 deletion version.php
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 0c39b19

Please sign in to comment.