Permalink
Browse files

The previous update was supposed to be an enlargement of answer in qu…

…iz_responses (not quiz_answers)

It is now correct and the mistake never made it to the stable version :-)
  • Loading branch information...
1 parent ff2a53e commit 813ac2e00a788d363d7f134ed7c81215caa1f79f kaipe committed Nov 13, 2004
Showing with 9 additions and 9 deletions.
  1. +2 −2 mod/quiz/db/mysql.php
  2. +2 −2 mod/quiz/db/mysql.sql
  3. +2 −2 mod/quiz/db/postgres7.php
  4. +2 −2 mod/quiz/db/postgres7.sql
  5. +1 −1 mod/quiz/version.php
View
@@ -267,8 +267,8 @@ function quiz_upgrade($oldversion) {
) TYPE=MyISAM COMMENT='Options for questions of type calculated'; ");
}
- if ($oldversion < 2004101700) {
- table_column("quiz_answers", "answer", "answer", "text", "", "", "", "not null");
+ if ($oldversion < 2004111400) {
+ table_column("quiz_responses", "answer", "answer", "text", "", "", "", "not null");
}
return true;
View
@@ -47,7 +47,7 @@ CREATE TABLE `prefix_quiz` (
CREATE TABLE `prefix_quiz_answers` (
`id` int(10) unsigned NOT NULL auto_increment,
`question` int(10) unsigned NOT NULL default '0',
- `answer` text NOT NULL default '',
+ `answer` varchar(255) NOT NULL default '',
`fraction` varchar(10) NOT NULL default '0.0',
`feedback` text NOT NULL,
PRIMARY KEY (`id`),
@@ -318,7 +318,7 @@ CREATE TABLE `prefix_quiz_responses` (
`id` int(10) unsigned NOT NULL auto_increment,
`attempt` int(10) unsigned NOT NULL default '0',
`question` int(10) unsigned NOT NULL default '0',
- `answer` varchar(255) NOT NULL default '',
+ `answer` text NOT NULL default '',
`grade` varchar(10) NOT NULL default '0.0',
PRIMARY KEY (`id`),
KEY `attempt` (`attempt`),
@@ -225,8 +225,8 @@ function quiz_upgrade($oldversion) {
modify_database ( "", "COMMIT;");
}
- if ($oldversion < 2004101700) {
- table_column("quiz_answers", "answer", "answer", "text", "", "", "", "not null");
+ if ($oldversion < 2004111400) {
+ table_column("quiz_responses", "answer", "answer", "text", "", "", "", "not null");
}
return true;
@@ -46,7 +46,7 @@ CREATE TABLE prefix_quiz (
CREATE TABLE prefix_quiz_answers (
id SERIAL PRIMARY KEY,
question integer NOT NULL default '0',
- answer text NOT NULL default '',
+ answer varchar(255) NOT NULL default '',
fraction varchar(10) NOT NULL default '0.0',
feedback text NOT NULL default ''
);
@@ -211,7 +211,7 @@ CREATE TABLE prefix_quiz_responses (
id SERIAL PRIMARY KEY,
attempt integer NOT NULL default '0',
question integer NOT NULL default '0',
- answer varchar(255) NOT NULL default '',
+ answer text NOT NULL default '',
grade varchar(10) NOT NULL default '0.0'
);
# --------------------------------------------------------
View
@@ -5,7 +5,7 @@
// This fragment is called by moodle_needs_upgrading() and /admin/index.php
////////////////////////////////////////////////////////////////////////////////
-$module->version = 2004101700; // The (date) version of this module
+$module->version = 2004111400; // The (date) version of this module
$module->requires = 2004091700; // Requires this Moodle version
$module->cron = 0; // How often should cron check this module (seconds)?

0 comments on commit 813ac2e

Please sign in to comment.