summaryrefslogtreecommitdiff
path: root/modules/system/system.api.php
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2010-08-22 13:55:53 +0000
committerDries Buytaert <dries@buytaert.net>2010-08-22 13:55:53 +0000
commitdb5368027e7b38a274e17bf002f543a0ffbbd7ae (patch)
tree95d6bbe06b2a58ddbad9e345523f4da2e6dfbe68 /modules/system/system.api.php
parent39d6704418f4a072f7157a524d4742a6c4e4f593 (diff)
downloadbrdo-db5368027e7b38a274e17bf002f543a0ffbbd7ae.tar.gz
brdo-db5368027e7b38a274e17bf002f543a0ffbbd7ae.tar.bz2
- Patch #880132 by bojanz: hook_schema() doesn't support compound foreign keys; inconsistent implementations in core.
Diffstat (limited to 'modules/system/system.api.php')
-rw-r--r--modules/system/system.api.php10
1 files changed, 10 insertions, 0 deletions
diff --git a/modules/system/system.api.php b/modules/system/system.api.php
index 158345faf..eb5fa4158 100644
--- a/modules/system/system.api.php
+++ b/modules/system/system.api.php
@@ -2566,6 +2566,16 @@ function hook_schema() {
'nid_vid' => array('nid', 'vid'),
'vid' => array('vid')
),
+ 'foreign keys' => array(
+ 'node_revision' => array(
+ 'table' => 'node_revision',
+ 'columns' => array('vid' => 'vid'),
+ ),
+ 'node_author' => array(
+ 'table' => 'users',
+ 'columns' => array('uid' => 'uid')
+ ),
+ ),
'primary key' => array('nid'),
);
return $schema;