]> git.mjollnir.org Git - moodle.git/commitdiff
merged fix for 5720
authortoyomoyo <toyomoyo>
Wed, 7 Jun 2006 05:59:25 +0000 (05:59 +0000)
committertoyomoyo <toyomoyo>
Wed, 7 Jun 2006 05:59:25 +0000 (05:59 +0000)
mod/quiz/db/mysql.php
mod/quiz/version.php

index 8f3d541f25af84d553592650f8ff4fea933e901b..0cd3325aab76fd060b0694b012936d36faaaa46d 100644 (file)
@@ -1051,6 +1051,13 @@ function quiz_upgrade($oldversion) {
                                    FROM prefix_quiz_attempts;");
     }
 
+    if ($oldversion < 2006060700) { // fix for 5720
+        execute_sql('DROP TABLE '.$CFG->prefix.'question_essay_states', false);
+        execute_sql('DROP TABLE '.$CFG->prefix.'question_essay', false);
+        execute_sql('DROP TABLE '.$CFG->prefix.'quiz_attemptonlast_datasets', false);
+    }
+
+
     return true;
 }
 
index 597b3c8ab3af935aea4a07764404fa8c1ce5b4e1..ff453fc52148590e2325c90df20770cffc278c58 100644 (file)
@@ -5,7 +5,7 @@
 //  This fragment is called by moodle_needs_upgrading() and /admin/index.php
 ////////////////////////////////////////////////////////////////////////////////
 
-$module->version  = 2006051700;   // The (date) version of this module
+$module->version  = 2006060700;   // The (date) version of this module
 $module->requires = 2006022400;   // Requires this Moodle version
 $module->cron     = 0;            // How often should cron check this module (seconds)?