Added an index on courses for the category

This commit is contained in:
moodler 2003-08-21 08:14:56 +00:00
parent 8d86ba60a0
commit 3052e775c8
4 changed files with 12 additions and 1 deletions

View file

@ -494,6 +494,10 @@ function main_upgrade($oldversion=0) {
table_column("course", "", "showgrades", "integer", "2", "unsigned", "1", "", "format");
}
if ($oldversion < 2003082101) {
execute_sql(" ALTER TABLE `{$CFG->prefix}course` ADD INDEX category (category) ");
}
return $result;
}