You are here

function quiz_update_6421 in Quiz 6.4

Implementation of hook_update_N

We forgot to add allow_jumping to the user settings in hook_schema

File

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

Code

function quiz_update_6421() {
  $results = array();
  if (!db_column_exists('quiz_user_settings', 'allow_jumping')) {
    db_add_field($results, 'quiz_user_settings', 'allow_jumping', array(
      'type' => 'int',
      'size' => 'tiny',
      'unsigned' => FALSE,
      'not null' => TRUE,
      'default' => 0,
    ));
  }
  return $results;
}