mirror of
https://github.com/moodle/moodle.git
synced 2025-03-14 04:30:15 +01:00
Adding more indexes to the log table - bug 4112 + version bump
This commit is contained in:
parent
107e7612b5
commit
fb3ea05cc3
@ -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;
|
||||
}
|
||||
|
||||
|
@ -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;
|
||||
}
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user