]> git.mjollnir.org Git - moodle.git/commitdiff
Increased size of section summaries from 255 chars to 65000 chars.
authormartin <martin>
Sun, 1 Sep 2002 14:24:16 +0000 (14:24 +0000)
committermartin <martin>
Sun, 1 Sep 2002 14:24:16 +0000 (14:24 +0000)
lib/db/mysql.sql
version.php

index 9b8255151e4aec22c363d4898e83b036f194515f..20d8602a8a7e4e9974b5f567125f40d04807b0e4 100644 (file)
@@ -86,7 +86,7 @@ CREATE TABLE `course_sections` (
   `id` int(10) unsigned NOT NULL auto_increment,
   `course` int(10) unsigned NOT NULL default '0',
   `section` int(10) unsigned NOT NULL default '0',
-  `summary` varchar(255) NOT NULL default '',
+  `summary` text NOT NULL,
   `sequence` varchar(255) NOT NULL default '',
   PRIMARY KEY  (`id`)
 ) TYPE=MyISAM;
index 7fdf07b8c45d0afce2121cc1bf726e7305002d71..67be050a63775fdc84ddbd2b31e9324383d2bf39 100644 (file)
@@ -17,7 +17,7 @@
 // If there's something it cannot do itself, it 
 // will tell you what you need to do.
 
-$version = 2002082600;
+$version = 2002090100;
 
 function upgrade_moodle($oldversion=0) {
 
@@ -52,7 +52,10 @@ function upgrade_moodle($oldversion=0) {
     }
 
     if ($oldversion < 2002082101) {
-        execute_sql("  ALTER TABLE `user` ADD `maildisplay` TINYINT(2) UNSIGNED DEFAULT '2' NOT NULL AFTER `mailformat` ");
+        execute_sql(" ALTER TABLE `user` ADD `maildisplay` TINYINT(2) UNSIGNED DEFAULT '2' NOT NULL AFTER `mailformat` ");
+    }
+    if ($oldversion < 2002090100) {
+        execute_sql(" ALTER TABLE `course_sections` CHANGE `summary` `summary` TEXT NOT NULL ");
     }
 
     return true;