Remove 'regrade' report from the quiz_report table, since it no longer exists.

This commit is contained in:
tjhunt
2008-07-29 11:53:54 +00:00
parent 384fe17362
commit 4d9f2c368f
3 changed files with 8 additions and 2 deletions
-1
View File
@@ -328,7 +328,6 @@
<SENTENCE TEXT="(name, displayorder) VALUES ('overview', '10000')" />
<SENTENCE TEXT="(name, displayorder) VALUES ('responses', '9000')" />
<SENTENCE TEXT="(name, displayorder) VALUES ('statistics', '8000')" />
<SENTENCE TEXT="(name, displayorder) VALUES ('regrade', '7000')" />
<SENTENCE TEXT="(name, displayorder) VALUES ('grading', '6000')" />
</SENTENCES>
</STATEMENT>
+7
View File
@@ -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;
}
+1 -1
View File
@@ -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)?