diff --git a/mod/quiz/db/install.xml b/mod/quiz/db/install.xml
index e81b4825def..b40eab101b2 100755
--- a/mod/quiz/db/install.xml
+++ b/mod/quiz/db/install.xml
@@ -328,7 +328,6 @@
-
diff --git a/mod/quiz/db/upgrade.php b/mod/quiz/db/upgrade.php
index a0ca4967a50..ade5e3e2108 100644
--- a/mod/quiz/db/upgrade.php
+++ b/mod/quiz/db/upgrade.php
@@ -109,6 +109,13 @@ function xmldb_quiz_upgrade($oldversion=0) {
upgrade_mod_savepoint($result, 2008072402, 'quiz');
}
+ if ($result && $oldversion < 2008072900) {
+ /// Delete the regrade report - it is now part of the overview report.
+ $result = $result && $DB->delete_records('quiz_report', array('name' => 'regrade'));
+
+ /// quiz savepoint reached
+ upgrade_mod_savepoint($result, 2008072900, 'quiz');
+ }
return $result;
}
diff --git a/mod/quiz/version.php b/mod/quiz/version.php
index 676568c21ef..07f646d1243 100644
--- a/mod/quiz/version.php
+++ b/mod/quiz/version.php
@@ -5,7 +5,7 @@
// This fragment is called by moodle_needs_upgrading() and /admin/index.php
////////////////////////////////////////////////////////////////////////////////
-$module->version = 2008072402; // The (date) version of this module
+$module->version = 2008072900; // The (date) version of this module
$module->requires = 2008072401; // Requires this Moodle version
$module->cron = 0; // How often should cron check this module (seconds)?