You are here

function quiz_update_7407 in Quiz 8.4

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

Adding auto update max score

File

./quiz.install, line 785
Quiz install schema for installing the quiz module

Code

function quiz_update_7407(&$sandbox) {
  $spec = array(
    'type' => 'int',
    'size' => 'tiny',
    'not null' => TRUE,
    'default' => 0,
  );
  db_add_field('quiz_node_relationship', 'auto_update_max_score', $spec);
  return t('Added new auto update max score field to the quiz_node_relationship table');
}