summaryrefslogtreecommitdiff
path: root/modules
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
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')
-rw-r--r--modules/node/node.install28
-rw-r--r--modules/system/system.install27
2 files changed, 28 insertions, 27 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;
}
diff --git a/modules/system/system.install b/modules/system/system.install
index 3d26becae..4c20c4c77 100644
--- a/modules/system/system.install
+++ b/modules/system/system.install
@@ -952,33 +952,6 @@ function system_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'),
- ),
- );
$schema['menu_router'] = array(
'description' => 'Maps paths to various callbacks (access, page and title)',
'fields' => array(