You are here

function short_answer_update_7401 in Quiz 7.6

Same name and namespace in other branches
  1. 8.6 question_types/quiz_short_answer/quiz_short_answer.install \short_answer_update_7401()
  2. 8.4 question_types/short_answer/short_answer.install \short_answer_update_7401()
  3. 8.5 question_types/quiz_short_answer/quiz_short_answer.install \short_answer_update_7401()
  4. 7.4 question_types/short_answer/short_answer.install \short_answer_update_7401()
  5. 7.5 question_types/short_answer/short_answer.install \short_answer_update_7401()

Adding feedback field to table {quiz_short_answer_user_answers}

File

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

Code

function short_answer_update_7401() {
  if (!db_field_exists('quiz_short_answer_user_answers', 'answer_feedback')) {
    $spec = array(
      'type' => 'text',
      'not null' => FALSE,
    );
    db_add_field('quiz_short_answer_user_answers', 'answer_feedback', $spec);
  }
}