mirror of
https://github.com/moodle/moodle.git
synced 2025-05-31 05:02:06 +02:00
Increase the size of the field to store sequences in course_sections
This commit is contained in:
parent
759660c9d9
commit
dd0bd5088c
@ -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;
|
||||
|
||||
}
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
}
|
||||
?>
|
||||
|
@ -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'
|
||||
);
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user