You are here

function quiz_update_6412 in Quiz 6.4

Implementation of hook_update_N(). Adding a new field to store the max score for random questions

File

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

Code

function quiz_update_6412() {
  $results = array();
  db_add_field($results, 'quiz_node_properties', 'max_score_for_random', array(
    'type' => 'int',
    'size' => 'tiny',
    'unsigned' => TRUE,
    'not null' => TRUE,
    'default' => 1,
  ));
  return $results;
}