You are here

function course_update_7132 in Course 7

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

Fix grade_result fields.

File

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

Code

function course_update_7132() {

  // Fix grade_result columns.
  db_change_field('course_report', 'grade_result', 'grade_result', array(
    'type' => 'int',
    'not null' => FALSE,
    'unsigned' => FALSE,
    'description' => 'Course grade received.',
  ));
  db_change_field('course_outline_fulfillment', 'grade_result', 'grade_result', array(
    'type' => 'int',
    'not null' => FALSE,
    'unsigned' => FALSE,
    'description' => 'Object grade received.',
  ));
  return t('Fixed grade_result fields.');
}