Permalink
Browse files

quiz_match was missing...

  • Loading branch information...
1 parent dc2590e commit 5352ceba679db649adf80773dcc7306b1c0fe455 paca70 committed Apr 27, 2003
Showing with 10 additions and 3 deletions.
  1. +9 −2 mod/quiz/db/postgres7.php
  2. +1 −1 mod/quiz/version.php
@@ -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;
}
@@ -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)?
?>

0 comments on commit 5352ceb

Please sign in to comment.