function quiz_update_7509 in Quiz 7.5
Same name and namespace in other branches
- 7.6 quiz.install \quiz_update_7509()
Make our answer_timestamp field NULLable for storing the attempt layout in the database.
File
- ./
quiz.install, line 1008 - Quiz install schema for installing the quiz module.
Code
function quiz_update_7509() {
db_change_field('quiz_node_results_answers', 'answer_timestamp', 'answer_timestamp', array(
'type' => 'int',
'unsigned' => TRUE,
'not null' => FALSE,
'default' => NULL,
));
db_drop_field('quiz_node_results', 'layout');
}