From: mjollnir_ Date: Thu, 27 Jan 2005 20:02:30 +0000 (+0000) Subject: Taking out addition of wrongly named metacourse tables for first upgrade. Those who... X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=483b71581d8b04f59f8db4ba90c146763ebec831;p=moodle.git Taking out addition of wrongly named metacourse tables for first upgrade. Those who are tracking head will have already gotten it, but those upgrading from 1.4 to 1.5 don't need to see it. --- diff --git a/lib/db/mysql.php b/lib/db/mysql.php index f7ab81b8c0..a37cefb764 100644 --- a/lib/db/mysql.php +++ b/lib/db/mysql.php @@ -1105,6 +1105,7 @@ function main_upgrade($oldversion=0) { if ($oldversion < 2005012500) { + /* // add new table for meta courses. modify_database("","CREATE TABLE `prefix_meta_course` ( `id` int(1) unsigned NOT NULL auto_increment, @@ -1116,6 +1117,7 @@ function main_upgrade($oldversion=0) { );"); // add flag to course field table_column('course','','meta_course','integer','1','','0','not null'); + */ // taking this OUT for upgrade from 1.4 to 1.5 (those tracking head will have already seen it) } if ($oldversion < 2005012501) { diff --git a/lib/db/postgres7.php b/lib/db/postgres7.php index aac11d7983..b368d8de0b 100644 --- a/lib/db/postgres7.php +++ b/lib/db/postgres7.php @@ -879,6 +879,7 @@ function main_upgrade($oldversion=0) { } if ($oldversion < 2005012500) { // add new table for meta courses. + /* modify_database("","CREATE TABLE prefix_meta_course ( id SERIAL primary key, parent_course integer NOT NULL, @@ -888,6 +889,7 @@ function main_upgrade($oldversion=0) { modify_database("","CREATE INDEX prefix_meta_course_parent_idx ON prefix_meta_course (parent_course);"); modify_database("","CREATE INDEX prefix_meta_course_child_idx ON prefix_meta_course (child_course);"); table_column('course','','meta_course','integer','1','','0','not null'); + */ // taking this OUT for upgrade from 1.4 to 1.5 (those tracking head will have already seen it) } if ($oldversion < 2005012501) { //fix table names for consistency