This repository was archived by the owner on Jun 22, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtripal_hq_imports.install
72 lines (69 loc) · 1.95 KB
/
tripal_hq_imports.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
<?php
/**
* @file
* Handles installation of the module.
*/
/**
* Implements hook_schema().
*/
function tripal_hq_imports_schema() {
$schema['tripal_hq_importer_submission'] = [
'description' => 'Store pending user requests to import files.',
'fields' => [
'id' => [
'type' => 'serial',
'unsigned' => TRUE,
'not null' => TRUE,
],
'uid' => [
'description' => "Drupal user ID of submitter",
'type' => 'int',
'not null' => TRUE,
],
'nid' => [
'description' => "Comments node ID",
'type' => 'int',
'not null' => FALSE,
],
'job_id' => [
'description' => "The id of the tripal job which ran the importer once approved.",
'type' => 'int',
'not null' => FALSE,
],
'class' => [
'description' => "The importer class the file and metadata is associated with.",
'type' => 'varchar',
'length' => 255,
'not null' => FALSE,
],
'data' => [
'description' => 'Serialized tripal importer data.',
'type' => 'blob',
'size' => 'big',
'serialize' => TRUE,
],
'status' => [
'description' => 'One of pending, published, rejected, obsolete',
'type' => 'varchar',
'length' => '60',
'not null' => TRUE,
],
'created_at' => [
'description' => 'Date submission created',
'type' => 'int',
'size' => 'big',
'not null' => TRUE,
],
'updated_at' => [
'description' => 'Date submission updated',
'type' => 'int',
'size' => 'big',
'not null' => FALSE,
],
],
'primary key' => [
'id',
],
];
return $schema;
}