From: moodler Date: Sat, 26 Oct 2002 03:13:54 +0000 (+0000) Subject: Changed type of quiz_answers.feedback to TEXT (255 chars was a bit cramped) X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=211ee674b33c600cfcd2539c9e4c248ff81e6018;p=moodle.git Changed type of quiz_answers.feedback to TEXT (255 chars was a bit cramped) --- diff --git a/mod/quiz/db/mysql.php b/mod/quiz/db/mysql.php index 534d42f3f8..1fbcf8ae84 100644 --- a/mod/quiz/db/mysql.php +++ b/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; } diff --git a/mod/quiz/db/mysql.sql b/mod/quiz/db/mysql.sql index 53a11b5488..1ac102649b 100644 --- a/mod/quiz/db/mysql.sql +++ b/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'; diff --git a/mod/quiz/version.php b/mod/quiz/version.php index d22d83c59c..b6f03231b0 100644 --- a/mod/quiz/version.php +++ b/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)? ?>