summaryrefslogtreecommitdiff
path: root/modules/node
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2011-04-12 21:16:58 +0200
committerDries Buytaert <dries@buytaert.net>2011-04-12 21:16:58 +0200
commit62f978fcb1dc754eda974d2f88c6f3d6e8cf191e (patch)
treebf373c12fbb9c5501b8cb848932852aa047ab430 /modules/node
parent452bac6da55660fe293abb51a77fafd7f287e072 (diff)
downloadbrdo-62f978fcb1dc754eda974d2f88c6f3d6e8cf191e.tar.gz
brdo-62f978fcb1dc754eda974d2f88c6f3d6e8cf191e.tar.bz2
- Patch #1120928 by catch: {history} table is owned by system module.
Diffstat (limited to 'modules/node')
-rw-r--r--modules/node/node.install28
1 files changed, 28 insertions, 0 deletions
diff --git a/modules/node/node.install b/modules/node/node.install
index 44c2350ec..c5378dc85 100644
--- a/modules/node/node.install
+++ b/modules/node/node.install
@@ -395,6 +395,34 @@ function node_schema() {
),
);
+ $schema['history'] = array(
+ 'description' => 'A record of which {users} have read which {node}s.',
+ 'fields' => array(
+ 'uid' => array(
+ 'description' => 'The {users}.uid that read the {node} nid.',
+ 'type' => 'int',
+ 'not null' => TRUE,
+ 'default' => 0,
+ ),
+ 'nid' => array(
+ 'description' => 'The {node}.nid that was read.',
+ 'type' => 'int',
+ 'not null' => TRUE,
+ 'default' => 0,
+ ),
+ 'timestamp' => array(
+ 'description' => 'The Unix timestamp at which the read occurred.',
+ 'type' => 'int',
+ 'not null' => TRUE,
+ 'default' => 0,
+ ),
+ ),
+ 'primary key' => array('uid', 'nid'),
+ 'indexes' => array(
+ 'nid' => array('nid'),
+ ),
+ );
+
return $schema;
}