From: moodler Date: Wed, 5 Apr 2006 13:45:14 +0000 (+0000) Subject: Added a missing index for some sites (bug 5100) X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=60f92a4330a8b14a121b710ec82eedf93555faf0;p=moodle.git Added a missing index for some sites (bug 5100) --- diff --git a/lib/db/mysql.php b/lib/db/mysql.php index 217fa6e1d6..7b16386f85 100644 --- a/lib/db/mysql.php +++ b/lib/db/mysql.php @@ -1747,6 +1747,10 @@ function main_upgrade($oldversion=0) { modify_database('',"UPDATE prefix_blog_tag_instance SET timemodified = '".time()."';"); } + if ($oldversion < 2006040500) { // Add an index to course_sections that was never upgraded (bug 5100) + execute_sql(" CREATE INDEX coursesection ON {$CFG->prefix}course_sections (course,section) ", false); + } + return $result; } diff --git a/lib/db/postgres7.php b/lib/db/postgres7.php index c47a0eadc6..81230be653 100644 --- a/lib/db/postgres7.php +++ b/lib/db/postgres7.php @@ -1484,6 +1484,10 @@ function main_upgrade($oldversion=0) { modify_database('',"UPDATE prefix_blog_tag_instance SET timemodified = '".time()."';"); } + if ($oldversion < 2006040500) { // Add an index to course_sections that was never upgraded (bug 5100) + execute_sql(" CREATE INDEX {$CFG->prefix}course_sections_coursesection_idx ON {$CFG->prefix}course_sections (course,section) ", false); + } + return $result; } diff --git a/version.php b/version.php index b783b1f0d2..c68ad30e88 100644 --- a/version.php +++ b/version.php @@ -6,9 +6,9 @@ // This is compared against the values stored in the database to determine // whether upgrades should be performed (see lib/db/*.php) - $version = 2006032900; // YYYYMMDD = date + $version = 2006040500; // YYYYMMDD = date // XY = increments within a single day - $release = '1.6 Beta 1'; // Human-friendly version name + $release = '1.6 Beta 2'; // Human-friendly version name ?>