function quiz_update_7406 in Quiz 7.5
Same name and namespace in other branches
- 8.4 quiz.install \quiz_update_7406()
- 7.6 quiz.install \quiz_update_7406()
- 7.4 quiz.install \quiz_update_7406()
Adding columns mark answers as doubtful.
File
- ./
quiz.install, line 811 - Quiz install schema for installing the quiz module.
Code
function quiz_update_7406(&$sandbox) {
$spec = array(
'type' => 'int',
'not null' => TRUE,
'default' => 0,
'size' => 'tiny',
);
db_add_field('quiz_node_results_answers', 'is_doubtful', $spec);
db_add_field('quiz_node_properties', 'mark_doubtful', $spec);
return t('Added new format fields to the tables');
}