]> git.mjollnir.org Git - moodle.git/commitdiff
quiz_match was missing...
authorpaca70 <paca70>
Sun, 27 Apr 2003 15:33:31 +0000 (15:33 +0000)
committerpaca70 <paca70>
Sun, 27 Apr 2003 15:33:31 +0000 (15:33 +0000)
mod/quiz/db/postgres7.php
mod/quiz/version.php

index 39a9970f4bec458e2f3c1e7ba0a5a0f0c9e7d9f5..28cfa041d263ce5f9cd1fed7e2e2f771ea3c73b3 100644 (file)
@@ -48,10 +48,17 @@ function quiz_upgrade($oldversion) {
     }
 
     if ($oldversion < 2003040901) {
-        table_column("quiz", "", "shufflequestions", "INTEGER", "4", "UNSIGNED", "0", "NOT NULL", "review");
+        table_column("quiz", "", "shufflequestions", "INTEGER", "5", "UNSIGNED", "0", "NOT NULL", "review");
         table_column("quiz", "", "shuffleanswers", "INTEGER", "4", "UNSIGNED", "0", "NOT NULL", "shufflequestions");
     }
-
+    if ($oldversion < 2003042702) {
+        modify_database ("", "CREATE TABLE prefix_quiz_match (
+                                 id SERIAL PRIMARY KEY,
+                                 question integer NOT NULL default '0',
+                                 subquestions varchar(255) NOT NULL default ''
+                               );");
+        modify_database ("", "CREATE INDEX question ON prefix_quiz_match (question);");
+    }
     return true;
 }
 
index 9283b57bd61a50f80530025eadf4aab318ada0f7..50d0821f0e06afd5aabe9f6ba401208cd4138d0a 100644 (file)
@@ -5,7 +5,7 @@
 //  This fragment is called by moodle_needs_upgrading() and /admin/index.php
 ////////////////////////////////////////////////////////////////////////////////
 
-$module->version  = 2003040901;   // The (date) version of this module
+$module->version  = 2003042702;   // The (date) version of this module
 $module->cron     = 0;            // How often should cron check this module (seconds)?
 
 ?>