-
Notifications
You must be signed in to change notification settings - Fork 0
/
pool.install
92 lines (88 loc) · 2.42 KB
/
pool.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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
<?php
/**
* @file
* Install, update and uninstall functions for the pool module.
*/
/**
* Implements hook_schema().
*/
function pool_schema() {
$schema = array();
$schema['pools'] = array(
'description' => 'This table represents all pools with all their items.',
'fields' => array(
'itemid' => array(
'description' => 'The (abstract) identifier of the pool item.',
'type' => 'serial',
'unsigned' => TRUE,
'not null' => TRUE,
'size' => 'big',
),
'pool' => array(
'type' => 'varchar',
'length' => 64,
'not null' => TRUE,
'description' => 'The pool the item has been throwed in.',
),
'stamp' => array(
'description' => 'The timestamp when the item was throwed in.',
'type' => 'int',
'unsigned' => TRUE,
'not null' => TRUE,
),
'throwedin_id' => array(
'decription' => 'The id of the throwed in entity (throwedin).',
'type' => 'int',
'size' => 'big',
'unsigned' => TRUE,
'not null' => TRUE,
),
'throwedin_vid' => array(
'decription' => 'The revision id of the throwed in entity (throwedin).',
'type' => 'int',
'size' => 'big',
'unsigned' => TRUE,
'not null' => FALSE,
),
'throwedin_type' => array(
'description' => 'The type of the throwed in entity (throwedin).',
'type' => 'varchar',
'length' => 128,
'not null' => TRUE,
),
'throwedby_id' => array(
'decription' => 'The entity id of the thrower (throwedby).',
'type' => 'int',
'size' => 'big',
'unsigned' => TRUE,
'not null' => TRUE,
),
'throwedby_vid' => array(
'decription' => 'The revision id of the thrower (throwedby).',
'type' => 'int',
'size' => 'big',
'unsigned' => TRUE,
'not null' => FALSE,
),
'throwedby_type' => array(
'description' => 'The entity type of the thrower (throwedby).',
'type' => 'varchar',
'length' => 128,
'not null' => TRUE,
),
),
'primary key' => array('itemid'),
'unique keys' => array(
'pool_throwedin' => array(
'pool',
'throwedin_id',
'throwedin_vid',
'throwedin_type',
'throwedby_id',
'throwedby_vid',
'throwedby_type',
),
),
);
return $schema;
}