mirror of
https://github.com/moodle/moodle.git
synced 2025-02-02 14:19:07 +01:00
The previous update was supposed to be an enlargement of answer in quiz_responses (not quiz_answers)
It is now correct and the mistake never made it to the stable version :-)
This commit is contained in:
parent
ff2a53e622
commit
813ac2e00a
@ -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;
|
||||
|
@ -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'
|
||||
);
|
||||
# --------------------------------------------------------
|
||||
|
@ -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)?
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user