-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnode_scheduler.install
53 lines (52 loc) · 1.56 KB
/
node_scheduler.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
<?php
/**
* Implementation of hook_schema().
*/
function node_scheduler_schema() {
$schema = array();
$schema['node_scheduler'] = array(
'description' => 'Storage for scheduled_actions.',
'fields' => array(
'nid' => array(
'description' => 'The {node}.nid to run the scheduled action on.',
'type' => 'int',
'unsigned' => TRUE,
'not null' => TRUE,
'default' => 0,
),
'schedule_key' => array(
'description' => 'Key for the scheduled action to run.',
'type' => 'varchar',
'length' => 32,
'not null' => TRUE,
'default' => '',
),
'scheduled_time' => array(
'description' => 'The Unix timestamp when the when the scheduled action should run.',
'type' => 'int',
'not null' => TRUE,
'default' => 0,
),
'queued_time' => array(
'description' => 'The Unix timestamp when the when the scheduled action should run.',
'type' => 'int',
'not null' => TRUE,
'default' => 0,
),
'executed_time' => array(
'description' => 'The Unix timestamp when the action was actually called.',
'type' => 'int',
'not null' => TRUE,
'default' => 0,
),
),
'primary key' => array('nid', 'schedule_key', 'scheduled_time'),
'indexes' => array(
'nid_key' => array('nid', 'schedule_key'),
'scheduled_time' => array('scheduled_time'),
'queued_time' => array('queued_time'),
'executed_time' => array('executed_time'),
),
);
return $schema;
}