-
Notifications
You must be signed in to change notification settings - Fork 0
/
islandora_lockssomatic.install
61 lines (60 loc) · 1.68 KB
/
islandora_lockssomatic.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
<?php
/**
* @file
* Install, update and uninstall functions for the Islandora
* LOCKSS-O-matic module.
*/
/**
* Implements hook_schema().
*
* Defines the database table used by this module.
*/
function islandora_lockssomatic_schema() {
$schema['islandora_lockssomatic_content'] = array(
'description' => 'Stores info on the Bags that have been included in SWORD deposits against LOCKSS-O-Matic.',
'fields' => array(
'id' => array(
'type' => 'serial',
'not null' => TRUE,
'description' => 'Primary Key.',
),
'deposited' => array(
'type' => 'datetime',
'mysql_type' => 'DATETIME',
'pgsql_type' => 'timestamp without time zone',
'not null' => TRUE,
'description' => 'Timestamp when the Bag was deposited.',
),
'filename' => array(
'type' => 'varchar',
'length' => 255,
'not null' => TRUE,
'default' => '',
'description' => 'Filename of the Bag.',
),
'checksum_type' => array(
'type' => 'varchar',
'length' => 10,
'not null' => TRUE,
'default' => '',
'description' => 'Type of the checksum applied to the Bag on deposit.',
),
'checksum_value' => array(
'type' => 'varchar',
'length' => 50,
'not null' => TRUE,
'default' => '',
'description' => 'Value of the checksum applied to the Bag on deposit.',
),
'size' => array(
'type' => 'int',
'not null' => TRUE,
'default' => '0',
'size' => 'big',
'description' => 'The size of the Bag, in bytes.',
),
),
'primary key' => array('id'),
);
return $schema;
}