You are here

function quiz_update_6301 in Quiz 6.5

Same name and namespace in other branches
  1. 6.6 quiz.install \quiz_update_6301()
  2. 6.3 quiz.install \quiz_update_6301()
  3. 6.4 quiz.install \quiz_update_6301()

Implementation of hook_update_N(). Add is_skipped column to quiz answer field. This allows questions to be skipped.

File

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

Code

function quiz_update_6301() {
  $result = array();

  // Do this:

  //'is_skipped' => array('type' => 'int', 'size' => 'tiny', 'unsigned' => TRUE, 'not null' => TRUE, 'default' => 0),
  db_add_field($result, 'quiz_node_results_answers', 'is_skipped', array(
    'type' => 'int',
    'size' => 'tiny',
    'unsigned' => TRUE,
    'not null' => TRUE,
    'default' => 0,
  ));
  return $result;
}