You are here

function short_answer_update_7402 in Quiz 7.4

Same name and namespace in other branches
  1. 8.6 question_types/quiz_short_answer/quiz_short_answer.install \short_answer_update_7402()
  2. 8.5 question_types/quiz_short_answer/quiz_short_answer.install \short_answer_update_7402()
  3. 7.6 question_types/short_answer/short_answer.install \short_answer_update_7402()
  4. 7.5 question_types/short_answer/short_answer.install \short_answer_update_7402()

Adding feedback format field to table {quiz_short_answer_user_answers}

File

question_types/short_answer/short_answer.install, line 154
The installer file for short_answer.

Code

function short_answer_update_7402() {
  if (!db_field_exists('quiz_short_answer_user_answers', 'answer_feedback_format')) {
    $spec = array(
      'type' => 'varchar',
      'length' => 255,
    );
    db_add_field('quiz_short_answer_user_answers', 'answer_feedback_format', $spec);
  }
}