From 0559a72aa368e7a5616087ca50bf82f72f4eea1a Mon Sep 17 00:00:00 2001 From: Tim Hunt Date: Tue, 19 Mar 2013 18:11:58 +0000 Subject: [PATCH] MDL-38557 fix quiz version number mess from MDL-31983 --- lib/db/upgrade.php | 8 ++++++++ mod/quiz/version.php | 2 +- version.php | 2 +- 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/lib/db/upgrade.php b/lib/db/upgrade.php index e7039580a15..96f1ac12759 100644 --- a/lib/db/upgrade.php +++ b/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; } diff --git a/mod/quiz/version.php b/mod/quiz/version.php index 6c683b0a82d..afe053dd9c8 100644 --- a/mod/quiz/version.php +++ b/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; diff --git a/version.php b/version.php index 31ff1131743..fcd225a2186 100644 --- a/version.php +++ b/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