Skip to content
Browse files

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

…OODLE_23_STABLE
  • Loading branch information...
2 parents 07cf088 + de53bad commit 633ed1edae25f9059f1852c5ae58a14ec78bdaf0 @danpoltawski danpoltawski committed
Showing with 11 additions and 1 deletion.
  1. +10 −0 mod/quiz/db/upgrade.php
  2. +1 −1 mod/quiz/version.php
View
10 mod/quiz/db/upgrade.php
@@ -330,6 +330,16 @@ function xmldb_quiz_upgrade($oldversion) {
// Moodle v2.3.0 release upgrade line
// Put any upgrade step following this
+ if ($oldversion < 2012061702) {
+
+ // 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;
}
View
2 mod/quiz/version.php
@@ -25,7 +25,7 @@
defined('MOODLE_INTERNAL') || die();
-$module->version = 2012061701; // The current module version (Date: YYYYMMDDXX).
+$module->version = 2012061702; // The current module version (Date: YYYYMMDDXX).
$module->requires = 2012061700; // Requires this Moodle version.
$module->component = 'mod_quiz'; // Full name of the plugin (used for diagnostics).
$module->cron = 60;

0 comments on commit 633ed1e

Please sign in to comment.
Something went wrong with that request. Please try again.