You are here

function course_update_7136 in Course 7.2

Same name and namespace in other branches
  1. 7 course.install \course_update_7136()

Add indexes for completion dates.

File

./course.install, line 1175
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',
    ));
  }
}