From: moodler Date: Mon, 24 Feb 2003 10:42:07 +0000 (+0000) Subject: New table for Postgres X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=86bce68fa827900b5fc9a712c12725fe2e5179e1;p=moodle.git New table for Postgres --- diff --git a/mod/quiz/db/postgres7.php b/mod/quiz/db/postgres7.php index c839413c88..4a26f8ee9c 100644 --- a/mod/quiz/db/postgres7.php +++ b/mod/quiz/db/postgres7.php @@ -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; } diff --git a/mod/quiz/db/postgres7.sql b/mod/quiz/db/postgres7.sql index 459e22a345..3b140b1fdb 100644 --- a/mod/quiz/db/postgres7.sql +++ b/mod/quiz/db/postgres7.sql @@ -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 #