function long_answer_update_6400 in Quiz 6.4
Implementation of hook_update_N()
Use float instead of int on the score field. This is to better suit the use of max score...
File
- question_types/
long_answer/ long_answer.install, line 114 - Long answer questions.
Code
function long_answer_update_6400() {
$results = array();
$spec = array(
'type' => 'float',
'unsigned' => TRUE,
'not null' => TRUE,
'default' => 0,
);
db_change_field($results, 'quiz_long_answer_user_answers', 'score', 'score', $spec);
return $results;
}