You are here

function short_answer_update_7402 in Quiz 7.5

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.4 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 134
Short_answer questions install file.

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);
  }
}