You are here

function course_update_7138 in Course 7

Same name and namespace in other branches
  1. 7.2 course.install \course_update_7138()

Add an index on "instance".

File

./course.install, line 1195
course.install Install and update functions for Courses.

Code

function course_update_7138() {
  if (!db_index_exists('course_outline', 'instance')) {
    db_add_index('course_outline', 'instance', array(
      'instance',
    ));
  }
  return t('Added index on "instance" column.');
}