Permalink
Browse files

Increased size of section summaries from 255 chars to 65000 chars.

  • Loading branch information...
1 parent 2f4de5e commit 7b1c0ce35c898b602560e21e1f080c0a3790c56c martin committed Sep 1, 2002
Showing with 6 additions and 3 deletions.
  1. +1 −1 lib/db/mysql.sql
  2. +5 −2 version.php
View
@@ -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;
View
@@ -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;

0 comments on commit 7b1c0ce

Please sign in to comment.