-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdata.install
More file actions
56 lines (54 loc) · 1.35 KB
/
data.install
File metadata and controls
56 lines (54 loc) · 1.35 KB
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 hooks for Data module.
*/
/**
* Implements hook_schema().
*/
function data_schema() {
$schema['data_tables'] = array(
'description' => 'Tables managed by Data module.',
'export' => array(
'key' => 'name',
'identifier' => 'data_table',
'default hook' => 'data_default', // Function hook name.
'api' => array(
'owner' => 'data',
'api' => 'data_default', // Base name for api include files.
'minimum_version' => 1,
'current_version' => 1,
),
),
'fields' => array(
'title' => array(
'type' => 'varchar',
'length' => '255',
'not null' => TRUE,
'default' => '',
'description' => 'Natural name of the table.',
),
'name' => array(
'type' => 'varchar',
'length' => '128',
'not null' => TRUE,
'default' => '',
'description' => 'Table name.',
),
'table_schema' => array(
'type' => 'text',
'not null' => FALSE,
'description' => 'Table schema.',
'serialize' => TRUE,
),
'meta' => array(
'type' => 'text',
'not null' => FALSE,
'description' => 'Meta information about the table and its fields.',
'serialize' => TRUE,
),
),
'primary key' => array('name'),
);
return $schema;
}