You are here

function course_update_7142 in Course 7

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

Update some fields to boolean.

File

./course.install, line 1246
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?',
  ));
}