You are here

function quiz_update_6305 in Quiz 6.5

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

Implementation of hook_update_N(). Adding new field to integrate quiz node and userpoints modules

File

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

Code

function quiz_update_6305() {
  $result = array();
  db_add_field($result, 'quiz_node_properties', 'has_userpoints', array(
    'type' => 'int',
    'size' => 'tiny',
    'unsigned' => TRUE,
    'not null' => TRUE,
    'default' => 0,
  ));
  return $result;
}