function short_answer_update_6400 in Quiz 6.4
Implementation of hook_update_N()
Convert the score columt to be of type float. This is to fit the new scoring system with different max scores in different quizzes.
File
- question_types/
short_answer/ short_answer.install, line 137 - The installer file for short_answer.
Code
function short_answer_update_6400() {
$to_return = array();
$spec = array(
'type' => 'float',
'unsigned' => TRUE,
'not null' => TRUE,
'default' => 0,
);
db_change_field($to_return, 'quiz_short_answer_user_answers', 'score', 'score', $spec);
return $to_return;
}