function course_update_7139 in Course 7.2
Same name and namespace in other branches
- 7 course.install \course_update_7139()
Add a new instance to fulfillments. Change existing instance column.
File
- ./
course.install, line 1208 - course.install Install and update functions for Courses.
Code
function course_update_7139() {
db_add_field('course_outline_fulfillment', 'instance', array(
'type' => 'varchar',
'length' => 255,
'not null' => FALSE,
'description' => 'The object instance',
));
db_change_field('course_outline', 'instance', 'instance', array(
'type' => 'varchar',
'length' => 255,
'not null' => FALSE,
'description' => 'The fulfillment instance',
));
return t('Added index on "instance" column. Changed existing instance field to a varchar for 3rd party systems.');
}