-
Notifications
You must be signed in to change notification settings - Fork 1
/
h5p_quiz.install
executable file
·46 lines (44 loc) · 1.06 KB
/
h5p_quiz.install
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
<?php
/**
* @file
* Install logic.
*/
/**
* Implements hook_schema().
*/
function h5p_quiz_schema() {
return array(
'h5p_quiz_data' => array(
'description' => 'H5p quiz data',
'fields' => array(
'uid' => array(
'description' => 'The user ID this data belongs to.',
'type' => 'int',
'unsigned' => TRUE,
'not null' => TRUE,
),
'question_id' => array(
'description' => 'The h5p question id.',
'type' => 'int',
'unsigned' => TRUE,
'not null' => TRUE,
),
'question_vid' => array(
'description' => 'The h5p question vid.',
'type' => 'int',
'unsigned' => TRUE,
'not null' => TRUE,
),
'value' => array(
'type' => 'text',
),
),
'primary key' => array('uid', 'question_id','question_vid'),
'indexes' => array(
'uid' => array('uid'),
'question_id' => array('question_id'),
'question_vid' => array('question_vid'),
),
),
);
}