function quiz_update_6422 in Quiz 6.4
Implementation of hook_update_N
Increase the maximum quiz size
File
- ./
quiz.install, line 14 - Quiz install schema for installing the quiz module
Code
function quiz_update_6422() {
$results = array();
db_change_field($results, '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($results, 'quiz_node_results_answers', 'number', 'number', array(
'type' => 'int',
'size' => 'small',
'unsigned' => FALSE,
'not null' => TRUE,
'default' => 1,
));
return $results;
}