-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtabletop.install
More file actions
executable file
·47 lines (45 loc) · 874 Bytes
/
tabletop.install
File metadata and controls
executable file
·47 lines (45 loc) · 874 Bytes
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
<?php
/**
* @file
*
*/
/**
* Implements hook_field_schema().
*
* Defines the database schema of the field, using the format used by the
* Schema API.
*/
function tabletop_field_schema($field) {
$columns = array(
'key' => array(
'type' => 'varchar',
'length' => 255,
'not null' => TRUE,
),
'sheet' => array(
'type' => 'varchar',
'length' => 255,
'not null' => FALSE,
),
'template' => array(
'type' => 'text',
),
'format' => array(
'type' => 'varchar',
'length' => 255,
'not null' => FALSE,
),
);
return array(
'columns' => $columns,
'indexes' => array(
'format' => array('format'),
),
'foreign keys' => array(
'format' => array(
'table' => 'filter_format',
'columns' => array('format' => 'format'),
),
),
);
}