diff options
Diffstat (limited to 'modules/system')
-rw-r--r-- | modules/system/system.api.php | 10 | ||||
-rw-r--r-- | modules/system/system.install | 10 |
2 files changed, 18 insertions, 2 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; diff --git a/modules/system/system.install b/modules/system/system.install index 174416c05..8774a7d74 100644 --- a/modules/system/system.install +++ b/modules/system/system.install @@ -831,7 +831,10 @@ function system_schema() { ), 'primary key' => array('fid'), 'foreign keys' => array( - 'uid' => array('users' => 'uid'), + 'file_owner' => array( + 'table' => 'users', + 'columns' => array('uid' => 'uid'), + ), ), ); @@ -1508,7 +1511,10 @@ function system_schema() { 'ssid' => array('ssid'), ), 'foreign keys' => array( - 'uid' => array('users' => 'uid'), + 'session_user' => array( + 'table' => 'users', + 'columns' => array('uid' => 'uid'), + ), ), ); |