Skip to content
Snippets Groups Projects
Commit a6f28495 authored by Devin Zuczek's avatar Devin Zuczek
Browse files

Fixed an issue coming from 6.x-4.x because answer_feedback already exists.

parent e7c3e93c
No related branches found
No related tags found
No related merge requests found
......@@ -89,11 +89,13 @@ function long_answer_schema() {
* Adding feedback field to table {quiz_long_answer_user_answers}
*/
function long_answer_update_7401() {
$spec = array(
'type' => 'text',
'not null' => FALSE,
);
db_add_field('quiz_long_answer_user_answers', 'answer_feedback', $spec);
if (!db_field_exists('quiz_long_answer_user_answers', 'answer_feedback')) {
$spec = array(
'type' => 'text',
'not null' => FALSE,
);
db_add_field('quiz_long_answer_user_answers', 'answer_feedback', $spec);
}
}
/**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment