Permalink
Browse files

MDL-38386 Courselib: Make sure the upgrade step for MDL-38173 always …

…runs
  • Loading branch information...
1 parent db01754 commit 0d9c836ab2297801b6d30b745ff0ed8c94c21ff6 @damyon damyon committed Mar 8, 2013
Showing with 3 additions and 5 deletions.
  1. +2 −4 lib/db/upgrade.php
  2. +1 −1 version.php
View
@@ -1610,9 +1610,7 @@ function xmldb_main_upgrade($oldversion) {
upgrade_main_savepoint(true, 2012120301.13);
}
- // This is checking to see if the site has been running a specific version with a bug in it
- // because this upgrade step is slow and is only needed if the site has been running with the affected versions.
- if ($oldversion >= 2012062504.08 && $oldversion < 2012062504.13) {
+ if ($oldversion < 2012120301.18) {
// Retrieve the list of course_sections as a recordset to save memory.
// This is to fix a regression caused by MDL-37939.
// In this case the upgrade step is fixing records where:
@@ -1670,7 +1668,7 @@ function xmldb_main_upgrade($oldversion) {
}
$coursesections->close();
- // No save point needed for this change
+ upgrade_main_savepoint(true, 2012120301.18);
}
return true;
View
@@ -30,7 +30,7 @@
defined('MOODLE_INTERNAL') || die();
-$version = 2012120301.17; // 20121203 = branching date YYYYMMDD - do not modify!
+$version = 2012120301.18; // 20121203 = branching date YYYYMMDD - do not modify!
// RR = release increments - 00 in DEV branches
// .XX = incremental changes

0 comments on commit 0d9c836

Please sign in to comment.