-
Notifications
You must be signed in to change notification settings - Fork 0
/
activitylogs.install
62 lines (59 loc) · 1.37 KB
/
activitylogs.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
<?php
/**
* @file
* Install, update and uninstall functions for the activitylogs module.
*/
/**
* Implements hook_schema().
*/
function activitylogs_schema() {
$schema['activitylogs'] = array(
'description' => 'Stores the log records.',
'fields' => array(
'log_id' => array(
'description' => 'Log ID.',
'type' => 'serial',
'not null' => TRUE,
'unsigned' => TRUE,
),
'title' => array(
'description' => 'Message Title',
'type' => 'varchar',
'length' => 255,
'not null' => FALSE,
'default' => '',
),
'message' => array(
'description' => 'Message',
'type' => 'text',
),
'nid' => array(
'description' => 'Node ID',
'type' => 'int',
'not null' => FALSE,
'default' => 0,
),
'uid' => array(
'description' => 'User ID',
'type' => 'int',
'not null' => FALSE,
'default' => 0,
),
'type' => array(
'description' => 'Type of log',
'type' => 'varchar',
'length' => 100,
'not null' => FALSE,
'default' => '',
),
'log_date' => array(
'description' => 'Log date',
'type' => 'datetime',
'mysql_type' => 'datetime',
'not null' => FALSE,
),
),
'primary key' => array('log_id'),
);
return $schema;
}