Skip to content

Commit

Permalink
Increase the size of the field to store sequences in course_sections
Browse files Browse the repository at this point in the history
  • Loading branch information
moodler committed Jul 21, 2003
1 parent 759660c commit dd0bd50
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 3 deletions.
4 changes: 4 additions & 0 deletions lib/db/mysql.php
Original file line number Diff line number Diff line change
Expand Up @@ -401,6 +401,10 @@ function main_upgrade($oldversion=0) {
table_column("course", "", "visible", "integer", "1", "unsigned", "1", "", "marker");
}

if ($oldversion < 2003072101) {
table_column("course_sections", "sequence", "sequence", "text", "", "", "", "", "");
}

return $result;

}
Expand Down
2 changes: 1 addition & 1 deletion lib/db/mysql.sql
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ CREATE TABLE `prefix_course_sections` (
`course` int(10) unsigned NOT NULL default '0',
`section` int(10) unsigned NOT NULL default '0',
`summary` text NOT NULL,
`sequence` varchar(255) NOT NULL default '',
`sequence` text NOT NULL default '',
`visible` tinyint(1) NOT NULL default '1',
PRIMARY KEY (`id`)
) TYPE=MyISAM;
Expand Down
4 changes: 4 additions & 0 deletions lib/db/postgres7.php
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,10 @@ function main_upgrade($oldversion=0) {
table_column("course", "", "visible", "integer", "1", "unsigned", "1", "", "marker");
}

if ($oldversion < 2003072101) {
table_column("course_sections", "sequence", "sequence", "text", "", "", "", "", "");
}

return $result;
}
?>
2 changes: 1 addition & 1 deletion lib/db/postgres7.sql
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ CREATE TABLE prefix_course_sections (
course integer NOT NULL default '0',
section integer NOT NULL default '0',
summary text NOT NULL default '',
sequence varchar(255) NOT NULL default '',
sequence text NOT NULL default '',
visible integer NOT NULL default '1'
);

Expand Down
2 changes: 1 addition & 1 deletion version.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
// database to determine whether upgrades should
// be performed (see lib/db/*.php)

$version = 2003072100; // The current version is a date (YYYYMMDDXX)
$version = 2003072101; // The current version is a date (YYYYMMDDXX)

$release = "1.1 development"; // User-friendly version number

Expand Down

0 comments on commit dd0bd50

Please sign in to comment.