]> git.mjollnir.org Git - moodle.git/commitdiff
New table for Postgres
authormoodler <moodler>
Mon, 24 Feb 2003 10:42:07 +0000 (10:42 +0000)
committermoodler <moodler>
Mon, 24 Feb 2003 10:42:07 +0000 (10:42 +0000)
mod/quiz/db/postgres7.php
mod/quiz/db/postgres7.sql

index c839413c8817036db758e6532fa5982f91602030..4a26f8ee9c5ef5df274af7218d26d4f36d281579 100644 (file)
@@ -16,6 +16,14 @@ function quiz_upgrade($oldversion) {
         table_column("quiz_questions", "type", "qtype", "INTEGER", "10", "UNSIGNED", "0", "NOT NULL", "");
     }
 
+    if ($oldversion < 2003022303) {
+        modify_database ("", "CREATE TABLE prefix_quiz_randommatch (
+                                  id SERIAL PRIMARY KEY,
+                                  question integer NOT NULL default '0',
+                                  choose integer NOT NULL default '4',
+                              );");
+    }
+
     return true;
 }
 
index 459e22a345485a605a808e3a0628a01f6dee9a96..3b140b1fdb29fc4bc155b97e5ac4ff988f23a024 100644 (file)
@@ -128,6 +128,16 @@ CREATE TABLE prefix_quiz_questions (
 );
 # --------------------------------------------------------
 
+#
+# Table structure for table quiz_randommatch
+#
+
+CREATE TABLE prefix_quiz_randommatch (
+  id SERIAL PRIMARY KEY,
+  question integer NOT NULL default '0',
+  choose integer NOT NULL default '4',
+);
+
 #
 # Table structure for table quiz_responses
 #