function quiz_question_update_6402 in Quiz 6.4
Implementation of hook_update_N
Add table for storing info on the latest quizzes each user has been involved in editing
File
- question_types/
quiz_question/ quiz_question.install, line 94 - The installer file for quiz_question.
Code
function quiz_question_update_6402() {
$results = array();
db_create_table($results, 'quiz_question_latest_quizzes', array(
'fields' => array(
'quiz_nid' => array(
'type' => 'int',
'unsigned' => TRUE,
'not null' => TRUE,
),
'uid' => array(
'type' => 'int',
'unsigned' => TRUE,
'not null' => TRUE,
),
'id' => array(
'type' => 'serial',
'unsigned' => TRUE,
'not null' => TRUE,
),
),
'primary key' => array(
'id',
),
));
return $results;
}