-
Notifications
You must be signed in to change notification settings - Fork 6
/
islandora_find_replace.install
69 lines (67 loc) · 1.78 KB
/
islandora_find_replace.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
69
<?php
/**
* @file
* Install file for Islandora Find & Replace.
*/
/**
* Implements hook_schema().
*/
function islandora_find_replace_schema() {
$schema['islandora_find_replace'] = array(
'description' => 'Storage of Islandora Find & Replace submissions',
'fields' => array(
'id' => array(
'description' => 'ID for the submission',
'type' => 'serial',
'length' => 11,
'not null' => TRUE,
),
'state' => array(
'type' => 'varchar',
'length' => 15,
'default' => NULL,
'description' => 'The state of the submission.',
),
'cmodel' => array(
'type' => 'varchar',
'length' => 255,
'default' => NULL,
'description' => 'The content model to search.',
),
'dsid' => array(
'type' => 'varchar',
'length' => 255,
'default' => NULL,
'description' => 'The datastream ID to be modified.',
),
'find' => array(
'type' => 'text',
'size' => 'normal',
'description' => 'The text to search for.',
'default' => NULL,
),
'replacement' => array(
'type' => 'text',
'size' => 'normal',
'description' => 'The text to replace with.',
'default' => NULL,
),
'find_results' => array(
'type' => 'blob',
'not null' => FALSE,
'size' => 'big',
'serialize' => TRUE,
'description' => 'A serialized array of the results from the search operation.',
),
'revisions' => array(
'type' => 'blob',
'not null' => FALSE,
'size' => 'big',
'serialize' => TRUE,
'description' => 'The datastream changes that were made.',
),
),
'primary key' => array('id'),
);
return $schema;
}