forked from fsulib/embargoes
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathembargoes.install
46 lines (44 loc) · 881 Bytes
/
embargoes.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
<?php
/**
* @file
* Install, update and uninstall functions for the embargoes module.
*/
/**
* Implements hook_schema().
*/
function embargoes_schema() {
$schema['embargoes_log'] = [
'description' => 'Embargo log table.',
'fields' => [
'id' => [
'type' => 'serial',
'unsigned' => TRUE,
'not null' => TRUE,
],
'time' => [
'type' => 'int',
'not null' => TRUE,
],
'action' => [
'type' => 'varchar',
'length' => 255,
'not null' => TRUE,
],
'node' => [
'type' => 'int',
'not null' => TRUE,
],
'user' => [
'type' => 'int',
'not null' => TRUE,
],
'embargo' => [
'type' => 'varchar',
'length' => 255,
'not null' => TRUE,
],
],
'primary key' => ['id'],
];
return $schema;
}