You are here

function quiz_update_7404 in Quiz 7.5

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

Increase the maximum quiz size.

File

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

Code

function quiz_update_7404() {
  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,
  ));
  db_change_field('quiz_node_results_answers', 'number', 'number', array(
    'type' => 'int',
    'size' => 'small',
    'unsigned' => FALSE,
    'not null' => TRUE,
    'default' => 1,
  ));
  return t('Increased the maximum quiz size.');
}