Adding more indexes to the log table - bug 4112 + version bump

This commit is contained in:
mjollnir_ 2006-03-07 22:14:40 +00:00
parent 107e7612b5
commit fb3ea05cc3
3 changed files with 11 additions and 1 deletions

View File

@ -1653,6 +1653,11 @@ function main_upgrade($oldversion=0) {
table_column('course_request','','password','varchar',50);
}
if ($oldversion < 2006030800) { # add extra indexes to log (see bug #4112)
modify_database('',"ALTER TABLE prefix_log ADD INDEX userid (userid);");
modify_database('',"ALTER TABLE prefix_log ADD INDEX info (info);");
}
return $result;
}

View File

@ -1394,6 +1394,11 @@ function main_upgrade($oldversion=0) {
if ($oldversion < 2005101200) { # add enrolment key to course_request.
table_column('course_request','','password','text');
}
if ($oldversion < 2006030800) { # add extra indexes to log (see bug #4112)
modify_database('',"CREATE INDEX prefix_log_userid_idx ON prefix_log (userid);");
modify_database('',"CREATE INDEX prefix_log_info_idx ON prefix_log (info);");
}
return $result;
}

View File

@ -6,7 +6,7 @@
// This is compared against the values stored in the database to determine
// whether upgrades should be performed (see lib/db/*.php)
$version = 2006022400; // YYYYMMDD = date
$version = 2006030800; // YYYYMMDD = date
// XY = increments within a single day
$release = '1.6 development'; // Human-friendly version name