// add new table for meta courses.
modify_database("","CREATE TABLE `prefix_course_meta` (
- `id` int(1) unsigned NOT NULL auto_increment,
+ `id` int(10) unsigned NOT NULL auto_increment,
`parent_course` int(10) NOT NULL default 0,
`child_course` int(10) NOT NULL default 0,
PRIMARY KEY (`id`),
table_column('course','','metacourse','integer','1','','0','not null');
}
+ if ($oldversion < 2005012800) {
+ // fix a typo (int 1 becomes int 10)
+ table_column('course_meta','id','id','integer','10','','0','not null');
+ }
+
return $result;
}
CREATE TABLE `prefix_course_meta` (
- `id` int(1) unsigned NOT NULL auto_increment,
+ `id` int(10) unsigned NOT NULL auto_increment,
`parent_course` int(10) NOT NULL default 0,
`child_course` int(10) NOT NULL default 0,
PRIMARY KEY (`id`),
// This is compared against the values stored in the database to determine
// whether upgrades should be performed (see lib/db/*.php)
- $version = 2005012501; // YYYYMMDD = date of first major branch release 1.4
+ $version = 2005012800; // YYYYMMDD = date of first major branch release 1.4
// XY = increments within a single day
$release = '1.5 UNSTABLE DEVELOPMENT'; // Human-friendly version name