function course_update_6125 in Course 7
Same name and namespace in other branches
- 6 course.install \course_update_6125()
- 7.2 course.install \course_update_6125()
Add indexes to course report table.
File
- ./
course.install, line 629 - course.install Install and update functions for Courses.
Code
function course_update_6125() {
$ret = array();
db_add_index('course_report', 'nid', array(
'nid',
));
db_add_index('course_report', 'uid', array(
'uid',
));
// hook_update_N() no longer returns a $ret array. Instead, return
// nothing or a translated string indicating the update ran successfully.
// See http://drupal.org/node/224333#update_sql.
return t('TODO Add a descriptive string here to show in the UI.');
}