function course_update_7142 in Course 7.2
Same name and namespace in other branches
- 7 course.install \course_update_7142()
Update some fields to boolean.
File
- ./
course.install, line 1249 - course.install Install and update functions for Courses.
Code
function course_update_7142() {
db_change_field('course_report', 'complete', 'complete', array(
'type' => 'int',
'size' => 'tiny',
'not null' => TRUE,
'unsigned' => TRUE,
'default' => 0,
'description' => 'Flag to mark this course as complete.',
));
db_change_field('course_outline', 'required', 'required', array(
'type' => 'int',
'size' => 'tiny',
'not null' => TRUE,
'unsigned' => TRUE,
'default' => 0,
'description' => 'is this item required?',
));
}