Permalink
Browse files

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

  • Loading branch information...
1 parent 373a8e0 commit 0559a72aa368e7a5616087ca50bf82f72f4eea1a @timhunt timhunt committed Mar 19, 2013
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
@@ -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
@@ -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
@@ -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

0 comments on commit 0559a72

Please sign in to comment.