Permalink
Browse files

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

…amped)
  • Loading branch information...
1 parent 0ee8d92 commit 211ee674b33c600cfcd2539c9e4c248ff81e6018 moodler committed Oct 26, 2002
Showing with 5 additions and 2 deletions.
  1. +3 −0 mod/quiz/db/mysql.php
  2. +1 −1 mod/quiz/db/mysql.sql
  3. +1 −1 mod/quiz/version.php
View
@@ -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
@@ -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
@@ -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)?
?>

0 comments on commit 211ee67

Please sign in to comment.