You are here

function quiz_update_7406 in Quiz 8.4

Same name and namespace in other branches
  1. 7.6 quiz.install \quiz_update_7406()
  2. 7.4 quiz.install \quiz_update_7406()
  3. 7.5 quiz.install \quiz_update_7406()

Adding columns mark answers as doubtful

File

./quiz.install, line 770
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');
}