function course_update_6128 in Course 7.2
Same name and namespace in other branches
- 6 course.install \course_update_6128()
- 7 course.install \course_update_6128()
Change open and close to integer.
File
- ./
course.install, line 701 - course.install Install and update functions for Courses.
Code
function course_update_6128() {
$ret = array();
db_change_field('course_node', 'open', 'open', array(
'type' => 'int',
'unsigned' => TRUE,
));
db_change_field('course_node', 'close', 'close', array(
'type' => 'int',
'unsigned' => TRUE,
));
// 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.');
}