function quiz_update_7406 in Quiz 7.6
Same name and namespace in other branches
- 8.4 quiz.install \quiz_update_7406()
- 7.4 quiz.install \quiz_update_7406()
- 7.5 quiz.install \quiz_update_7406()
Adding columns mark answers as doubtful
File
- ./
quiz.install, line 743 - 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');
}