-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathagile_lcp.install
70 lines (65 loc) · 1.55 KB
/
agile_lcp.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
63
64
65
66
67
68
<?php
/**
* @file
* Install functions.
*/
/**
* Implements hook_install().
*
* @see islandora_basic_collection_islandora_required_objects()
*/
function agile_lcp_install() {
module_load_include('inc', 'islandora', 'includes/solution_packs');
islandora_install_solution_pack('agile_lcp');
}
/**
* Implements hook_schema().
*/
function agile_lcp_schema() {
$schema['resumption_token'] = array(
'description' => 'Table that stores saved configuration names.',
'fields' => array(
'token_id' => array(
'description' => 'Unique ID given to each token',
'type' => 'serial',
'length' => 11,
'not null' => TRUE,
),
'token' => array(
'description' => 'redemption token ',
'type' => 'varchar',
'length' => 255,
'not null' => TRUE,
),
'processed' => array(
'type' => 'int',
'not null' => TRUE,
'default' => 0,
),
'rundate' => array(
'type' => 'varchar',
'not null' => FALSE,
'length' => '10',
)
),
'primary key' => array('token_id'),
);
$schema['collection_pids'] = array(
'description' => 'Table pids from OAI collection.',
'fields' => array(
'PID' => array(
'description' => 'Unique ID given to each object',
'type' => 'varchar',
'length' => 255,
'not null' => TRUE,
),
'indexed' => array(
'type' => 'int',
'not null' => TRUE,
'default' => 0,
),
),
'primary key' => array('PID'),
);
return $schema;
}