-
Notifications
You must be signed in to change notification settings - Fork 0
/
bundle_inheritance.install
71 lines (67 loc) · 2.08 KB
/
bundle_inheritance.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
<?php
/**
* implementation of hook_schema
*/
function bundle_inheritance_schema( )
{
$schema = array();
$schema['bundle_inheritances'] = array(
'primary key' => array(
'id'
),
'fields' => array(
'id' => array(
// 'description' => 'The primary identifier',
'type' => 'serial',
'unsigned' => TRUE,
'not null' => TRUE
),
'label' => array(
// 'description' => 'The segment name',
'type' => 'varchar',
'length' => '255',
'not null' => TRUE,
'default' => 'inheritance'
),
'bundle' => array(
// 'description' => 'The name of the shape',
'type' => 'varchar',
'length' => '255',
'not null' => TRUE
),
'parent' => array(
// 'description' => 'The name of the shape',
'type' => 'varchar',
'length' => '255',
'not null' => TRUE
),
'child' => array(
// 'description' => 'The name of the shape',
'type' => 'varchar',
'length' => '255',
'not null' => TRUE
),
'entity_type' => array(
// 'description' => 'The name of the shape',
'type' => 'varchar',
'length' => '255',
'not null' => TRUE
),
'status' => array(
'type' => 'int',
'not null' => true,
'default' => 0x01,
'size' => 'tiny',
'description' => 'The exportable status of the entity.'
),
'module' => array(
'description' => 'The name of the providing module if the entity has been defined in code.',
'type' => 'varchar',
'length' => 255,
'not null' => FALSE,
),
)
);
return $schema;
}
?>