Skip to content

Commit

Permalink
Changed type of quiz_answers.feedback to TEXT (255 chars was a bit cr…
Browse files Browse the repository at this point in the history
…amped)
  • Loading branch information
moodler committed Oct 26, 2002
1 parent 0ee8d92 commit 211ee67
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions mod/quiz/db/mysql.php
Expand Up @@ -20,6 +20,9 @@ function quiz_upgrade($oldversion) {
execute_sql(" INSERT INTO log_display VALUES ('quiz', 'attempt', 'quiz', 'name') "); execute_sql(" INSERT INTO log_display VALUES ('quiz', 'attempt', 'quiz', 'name') ");
execute_sql(" INSERT INTO log_display VALUES ('quiz', 'submit', 'quiz', 'name') "); execute_sql(" INSERT INTO log_display VALUES ('quiz', 'submit', 'quiz', 'name') ");
} }
if ($oldversion < 2002102600) {
execute_sql(" ALTER TABLE `quiz_answers` CHANGE `feedback` `feedback` TEXT NOT NULL ");
}


return true; return true;
} }
Expand Down
2 changes: 1 addition & 1 deletion mod/quiz/db/mysql.sql
Expand Up @@ -42,7 +42,7 @@ CREATE TABLE `quiz_answers` (
`question` int(10) unsigned NOT NULL default '0', `question` int(10) unsigned NOT NULL default '0',
`answer` varchar(255) NOT NULL default '', `answer` varchar(255) NOT NULL default '',
`fraction` varchar(10) NOT NULL default '0.0', `fraction` varchar(10) NOT NULL default '0.0',
`feedback` varchar(255) NOT NULL default '', `feedback` text NOT NULL,


PRIMARY KEY (`id`) PRIMARY KEY (`id`)
) TYPE=MyISAM COMMENT='Answers, with a fractional grade (0-1) and feedback'; ) TYPE=MyISAM COMMENT='Answers, with a fractional grade (0-1) and feedback';
Expand Down
2 changes: 1 addition & 1 deletion mod/quiz/version.php
Expand Up @@ -5,7 +5,7 @@
// This fragment is called by moodle_needs_upgrading() and /admin/index.php // This fragment is called by moodle_needs_upgrading() and /admin/index.php
//////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////


$module->version = 2002102101; // The (date) version of this module $module->version = 2002102600; // The (date) version of this module
$module->cron = 0; // How often should cron check this module (seconds)? $module->cron = 0; // How often should cron check this module (seconds)?
?> ?>

0 comments on commit 211ee67

Please sign in to comment.