diff options
Diffstat (limited to 'modules/comment')
-rw-r--r-- | modules/comment/comment.install | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/modules/comment/comment.install b/modules/comment/comment.install index fd227065b..894a070e8 100644 --- a/modules/comment/comment.install +++ b/modules/comment/comment.install @@ -261,6 +261,9 @@ function comment_schema() { 'status' => array('status'), ), 'primary key' => array('cid'), + 'foreign keys' => array( + 'nid' => array('node' => 'nid'), + ), ); $schema['node_comment_statistics'] = array( @@ -303,6 +306,9 @@ function comment_schema() { 'indexes' => array( 'node_comment_timestamp' => array('last_comment_timestamp'), ), + 'foreign keys' => array( + 'nid' => array('node' => 'nid'), + ), ); return $schema; |