You are here

function quiz_update_7404 in Quiz 8.4

Same name and namespace in other branches
  1. 7.6 quiz.install \quiz_update_7404()
  2. 7.4 quiz.install \quiz_update_7404()
  3. 7.5 quiz.install \quiz_update_7404()

Increase the maximum quiz size

File

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

Code

function quiz_update_7404() {
  $results[] = db_change_field('quiz_node_properties', 'number_of_random_questions', 'number_of_random_questions', array(
    'type' => 'int',
    'size' => 'small',
    'unsigned' => TRUE,
    'not null' => TRUE,
    'default' => 0,
  ));
  $results[] = db_change_field('quiz_node_results_answers', 'number', 'number', array(
    'type' => 'int',
    'size' => 'small',
    'unsigned' => FALSE,
    'not null' => TRUE,
    'default' => 1,
  ));
  return $results;
}