-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathhosting_storage.install
executable file
·55 lines (53 loc) · 1.16 KB
/
hosting_storage.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
<?php
/**
* @file
* Install, update and uninstall for the hosting storage module.
*/
/**
* Implementation of hook_schema().
*/
function hosting_storage_schema() {
$schema['hosting_storage'] = array(
'fields' => array(
'vid' => array(
'type' => 'int',
'unsigned' => TRUE,
'not null' => TRUE,
'default' => 0,
),
'nid' => array(
'type' => 'int',
'unsigned' => TRUE,
'not null' => TRUE,
'default' => 0,
),
'storage_location' => array(
'type' => 'varchar',
'length' => 255,
'default' => '',
),
'preinstall_script' => array(
'type' => 'varchar',
'length' => 255,
'default' => '',
),
'postinstall_script' => array(
'type' => 'varchar',
'length' => 255,
'default' => '',
),
'predelete_script' => array(
'type' => 'varchar',
'length' => 255,
'default' => '',
),
'postdelete_script' => array(
'type' => 'varchar',
'length' => 255,
'default' => '',
),
),
'primary key' => array('vid'),
);
return $schema;
}