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

Fixed an upgrade issue from Drupal 6.

parent a6f28495
No related branches found
No related tags found
No related merge requests found
......@@ -221,6 +221,20 @@ function multichoice_uninstall() {
}
}
/**
* Change answer_format to a varchar.
*/
function multichoice_update_7500() {
foreach (array('answer_format', 'feedback_if_chosen_format', 'feedback_if_not_chosen_format') as $field) {
db_change_field('quiz_multichoice_answers', $field, $field, array(
'type' => 'varchar',
'length' => 255,
'not null' => TRUE,
)
);
}
}
/**
* Add weights for multichoice alternatives.
*/
......
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