Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

MDL-38557 fix quiz version number mess from MDL-31983

  • Loading branch information...
commit 0559a72aa368e7a5616087ca50bf82f72f4eea1a 1 parent 373a8e0
@timhunt timhunt authored
Showing with 10 additions and 2 deletions.
  1. +8 −0 lib/db/upgrade.php
  2. +1 −1  mod/quiz/version.php
  3. +1 −1  version.php
View
8 lib/db/upgrade.php
@@ -1756,5 +1756,13 @@ function xmldb_main_upgrade($oldversion) {
// No savepoint needed for this change.
}
+ if ($oldversion < 2013032200.01) {
+ // MDL-31983 broke the quiz version number. Fix it.
+ $DB->set_field('modules', 'version', '2013021500',
+ array('name' => 'quiz', 'version' => '2013310100'));
+
+ upgrade_main_savepoint(true, 2013032200.01);
+ }
+
return true;
}
View
2  mod/quiz/version.php
@@ -25,7 +25,7 @@
defined('MOODLE_INTERNAL') || die();
-$module->version = 2013310100; // The current module version (Date: YYYYMMDDXX).
+$module->version = 2013021500; // The current module version (Date: YYYYMMDDXX).
$module->requires = 2012112900; // Requires this Moodle version.
$module->component = 'mod_quiz'; // Full name of the plugin (used for diagnostics).
$module->cron = 60;
View
2  version.php
@@ -29,7 +29,7 @@
defined('MOODLE_INTERNAL') || die();
-$version = 2013032200.00; // YYYYMMDD = weekly release date of this DEV branch
+$version = 2013032200.01; // YYYYMMDD = weekly release date of this DEV branch
// RR = release increments - 00 in DEV branches
// .XX = incremental changes
Please sign in to comment.
Something went wrong with that request. Please try again.