From 88c9a015c16bcfc6312f539c13a320aa40d91aa9 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Mon, 1 Jun 2009 22:07:10 +0000 Subject: - Patch #111011 by Josh Waihi: adding foreign key specifications. --- modules/comment/comment.install | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'modules/comment/comment.install') 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; -- cgit v1.2.3