-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathislandora_qa.install
94 lines (87 loc) · 2.37 KB
/
islandora_qa.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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
<?php
/**
* @file
* Installation hooks.
*/
/**
* Implements hook_schema().
*/
function islandora_qa_schema() {
$schema = array();
$schema['islandora_qa_task_info'] = array(
'description' => 'Holds information about the various tasks',
'fields' => array(
'taskId' => array(
'description' => 'An identifier for this task set',
'type' => 'serial',
'unsigned' => TRUE,
'not null' => TRUE,
),
'viewer' => array(
'description' => 'The name of the module that displays information about the object',
'type' => 'varchar',
'not null' => TRUE,
'length' => 255,
),
'viewerOptions' => array(
'description' => 'Options for the viewer',
'type' => 'varchar',
'length' => 255,
),
'streamEdit' => array(
'description' => 'A data stream that can be edited',
'type' => 'varchar',
'not null' => TRUE,
'length' => 255,
),
'form' => array(
'description' => 'A form that is used to edit the date stream',
'type' => 'varchar',
'not null' => TRUE,
'length' => 255,
),
),
'primary key' => array('taskId'),
);
$schema['islandora_qa_task_items'] = array(
'description' => 'lists the items and the task they belong to',
'fields' => array(
'taskId' => array(
'description' => 'An identifier for this task set',
'type' => 'int',
'size' => 'big',
'not null' => TRUE,
),
'itemId' => array(
'description' => 'An identifier which was allocated for this object',
'type' => 'varchar',
'not null' => TRUE,
'length' => 255,
),
'status' => array(
'description' => 'Describes if the item has been processed, 0=no 1=yes 2=error',
'type' => 'int',
'size' => 'small',
'not null' => TRUE,
'default' => 0,
),
'rejectionReason' => array(
'description' => 'The reason the item was rejected',
'type' => 'varchar',
'length' => 255,
),
'user' => array(
'description' => 'The user that worked on this item',
'type' => 'int',
'size' => 'big',
),
),
'primary key' => array('taskId', 'itemId'),
);
return $schema;
}
/**
* Implements hook_uninstall().
*/
function islandora_qa_uninstall() {
}