Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Changed type of quiz_answers.feedback to TEXT (255 chars was a bit cr…

…amped)
  • Loading branch information...
commit 211ee674b33c600cfcd2539c9e4c248ff81e6018 1 parent 0ee8d92
moodler authored
View
3  mod/quiz/db/mysql.php
@@ -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', 'submit', 'quiz', 'name') ");
}
+ if ($oldversion < 2002102600) {
+ execute_sql(" ALTER TABLE `quiz_answers` CHANGE `feedback` `feedback` TEXT NOT NULL ");
+ }
return true;
}
View
2  mod/quiz/db/mysql.sql
@@ -42,7 +42,7 @@ CREATE TABLE `quiz_answers` (
`question` int(10) unsigned NOT NULL default '0',
`answer` varchar(255) NOT NULL default '',
`fraction` varchar(10) NOT NULL default '0.0',
- `feedback` varchar(255) NOT NULL default '',
+ `feedback` text NOT NULL,
PRIMARY KEY (`id`)
) TYPE=MyISAM COMMENT='Answers, with a fractional grade (0-1) and feedback';
View
2  mod/quiz/version.php
@@ -5,7 +5,7 @@
// 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)?
?>
Please sign in to comment.
Something went wrong with that request. Please try again.