Permalink
Browse files

Merge branch 'MDL-32791_22' of git://github.com/timhunt/moodle into M…

…OODLE_22_STABLE
  • Loading branch information...
2 parents 254f6e4 + d4b3dd6 commit a14127cdbc97f0010215905faba3164ffd871acc @danpoltawski danpoltawski committed Jul 31, 2012
Showing with 12 additions and 1 deletion.
  1. +11 −0 mod/quiz/db/upgrade.php
  2. +1 −1 mod/quiz/version.php
@@ -1196,6 +1196,17 @@ function xmldb_quiz_upgrade($oldversion) {
// Moodle v2.2.0 release upgrade line
// Put any upgrade step following this
+ if ($oldversion < 2011112903) {
+
+ // MDL-32791 somebody reported having nonsense rows in their
+ // quiz_question_instances which caused various problems. These rows
+ // are meaningless, hence this upgrade step to clean them up.
+ $DB->delete_records('quiz_question_instances', array('question' => 0));
+
+ // Quiz savepoint reached.
+ upgrade_mod_savepoint(true, 2012061702, 'quiz');
+ }
+
return true;
}
@@ -25,7 +25,7 @@
defined('MOODLE_INTERNAL') || die();
-$module->version = 2011112902; // The current module version (Date: YYYYMMDDXX)
+$module->version = 2011112903; // The current module version (Date: YYYYMMDDXX)
$module->requires = 2011112900; // Requires this Moodle version
$module->component = 'mod_quiz'; // Full name of the plugin (used for diagnostics)
$module->cron = 60;

0 comments on commit a14127c

Please sign in to comment.