You are here

function short_answer_update_6401 in Quiz 8.4

Same name and namespace in other branches
  1. 6.4 question_types/short_answer/short_answer.install \short_answer_update_6401()

Implementation of hook_update_N()

Adding feedback field to table {quiz_short_answer_user_answers}

File

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

Code

function short_answer_update_6401() {
  $to_return = array();
  $spec = array(
    'type' => 'text',
    'not null' => FALSE,
  );
  db_add_field($to_return, 'quiz_short_answer_user_answers', 'answer_feedback', $spec);
  return $to_return;
}