Remove 'regrade' report from the quiz_report table, since it no longer exists.
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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)?
|
||||
|
||||
|
||||
Reference in New Issue
Block a user