function course_update_7136 in Course 7
Same name and namespace in other branches
- 7.2 course.install \course_update_7136()
Add indexes for completion dates.
File
- ./
course.install, line 1172 - course.install Install and update functions for Courses.
Code
function course_update_7136() {
if (!db_index_exists('course_report', 'date_completed')) {
db_add_index('course_report', 'date_completed', array(
'date_completed',
));
}
if (!db_index_exists('course_outline_fulfillment', 'date_completed')) {
db_add_index('course_outline_fulfillment', 'date_completed', array(
'date_completed',
));
}
}