]> git.mjollnir.org Git - moodle.git/commitdiff
Remove 'regrade' report from the quiz_report table, since it no longer exists.
authortjhunt <tjhunt>
Tue, 29 Jul 2008 11:53:54 +0000 (11:53 +0000)
committertjhunt <tjhunt>
Tue, 29 Jul 2008 11:53:54 +0000 (11:53 +0000)
mod/quiz/db/install.xml
mod/quiz/db/upgrade.php
mod/quiz/version.php

index e81b4825defb81a10ad882d33b3acc29cdb7bd1c..b40eab101b284ab0a16974b70eca9beb54273a93 100755 (executable)
         <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>
index a0ca4967a50e7b7c3e8dcccfba7fffdcccc7fc17..ade5e3e2108dac75877383566d09c7a90d7f217a 100644 (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;
 }
index 676568c21efdd1e0c289aec0ebba17fe94b78b60..07f646d12437b63db8c344a139fc88ab57f37c16 100644 (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)?