function short_answer_update_7401 in Quiz 7.5
Same name and namespace in other branches
- 8.6 question_types/quiz_short_answer/quiz_short_answer.install \short_answer_update_7401()
- 8.4 question_types/short_answer/short_answer.install \short_answer_update_7401()
- 8.5 question_types/quiz_short_answer/quiz_short_answer.install \short_answer_update_7401()
- 7.6 question_types/short_answer/short_answer.install \short_answer_update_7401()
- 7.4 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 121 - Short_answer questions install file.
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);
}
}