-
Notifications
You must be signed in to change notification settings - Fork 6
/
bpi.install
50 lines (47 loc) · 1019 Bytes
/
bpi.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
<?php
/**
* @file
* Install/uninstall, database related stuff here.
*/
/**
* Implements hook_schema().
*/
function bpi_schema() {
$schema = array();
$schema['bpi_syndicated'] = array(
'description' => 'Holds the correspondence between bpi id and node id.',
'fields' => array(
'id' => array(
'type' => 'serial'
),
'nid' => array(
'type' => 'int',
'not null' => TRUE,
'default' => 0,
),
'bid' => array(
'type' => 'varchar',
'length' => '128',
'not null' => TRUE,
'default' => '',
),
'status' => array(
'type' => 'int',
'not null' => TRUE,
'default' => 0,
),
'timestamp' => array(
'type' => 'varchar',
'length' => '128',
'not null' => TRUE,
'default' => '',
)
),
'primary key' => array('id'),
'indexes' => array(
'node_id' => array('nid'),
'bpi_id' => array('bid'),
),
);
return $schema;
}