You are here

function quiz_update_6406 in Quiz 6.4

Implementation of hook_update_N(). Adding a field to store what results are to be kept.

File

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

Code

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