-
Notifications
You must be signed in to change notification settings - Fork 0
/
tripal_fold.install
62 lines (54 loc) · 1.05 KB
/
tripal_fold.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
<?php
/**
* Installation of the tripal protein structure module
*/
/**
* Implementation of hook_schema().
*
* @ingroup tripal_protein_structure
*/
function tripal_fold_schema() {
$schema['tripal_fold'] = array(
'fields' => array(
'id' => array(
'type' => 'serial',
'unsigned' => TRUE,
'not null' => TRUE,
),
'feature_id' => array(
'type' => 'int',
'unsigned' => TRUE,
'not null' => TRUE,
),
'feature_name' => array(
'type' => 'text',
'not null' => TRUE,
),
'filename' => array(
'type' => 'text',
'not null' => TRUE,
),
'uri' => array(
'type' => 'text',
'not null' => TRUE,
),
),
'primary key' => array('id'),
'foreign keys' => array(
'feature_id' => array(
'table' => 'feature',
'columns' => array(
'feature_id' => 'feature_id',
)
)
)
);
return $schema;
}
/**
* Implementation of hook_uninstall()
*
* @ingroup tripal_fold
*/
function tripal_fold_uninstall() {
}