Fixing a typo in metacourses in mysql (id should be int 10 not int 1). Hopefully this is the end of it :(

This commit is contained in:
mjollnir_
2005-01-27 20:41:54 +00:00
parent 483b71581d
commit a22fd258aa
3 changed files with 8 additions and 3 deletions
+6 -1
View File
@@ -1126,7 +1126,7 @@ function main_upgrade($oldversion=0) {
// 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`),
@@ -1137,6 +1137,11 @@ function main_upgrade($oldversion=0) {
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;
}
+1 -1
View File
@@ -552,7 +552,7 @@ CREATE TABLE `prefix_user_coursecreators` (
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`),