]> git.mjollnir.org Git - moodle.git/commitdiff
Changed type of quiz_answers.feedback to TEXT (255 chars was a bit cramped)
authormoodler <moodler>
Sat, 26 Oct 2002 03:13:54 +0000 (03:13 +0000)
committermoodler <moodler>
Sat, 26 Oct 2002 03:13:54 +0000 (03:13 +0000)
mod/quiz/db/mysql.php
mod/quiz/db/mysql.sql
mod/quiz/version.php

index 534d42f3f881fa433b04c3c2c2e710b6e76789c9..1fbcf8ae84bc0fe57d6668d848cf66db033b26db 100644 (file)
@@ -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;
 }
index 53a11b5488283048a66be9c22c35363facf6d251..1ac102649b7d5f2d31440159857505c8c4669e31 100644 (file)
@@ -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';
index d22d83c59c856f71f86727ffd4047cfcd6368120..b6f03231b0f3d3f9d948bed97543b981ace5e786 100644 (file)
@@ -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)?
 
 ?>