You are here

function course_update_6124 in Course 6

Same name and namespace in other branches
  1. 7.2 course.install \course_update_6124()
  2. 7 course.install \course_update_6124()

Add date started field to to fulfillment, add duration to course outline object, remove type field.

File

./course.install, line 504
course.install Install and update functions for Courses.

Code

function course_update_6124() {
  $ret = array();
  db_add_field($ret, 'course_outline_fulfillment', 'date_started', array(
    'type' => 'int',
    'not null' => FALSE,
    'unsigned' => TRUE,
    'default' => NULL,
    'description' => 'Date object was started.',
  ));
  db_add_field($ret, 'course_outline', 'duration', array(
    'type' => 'int',
    'not null' => TRUE,
    'default' => 0,
    'description' => 'Amount of time in seconds a user has to access this object.',
  ));
  db_drop_field($ret, 'course_node', 'type');
  return $ret;
}