From db5368027e7b38a274e17bf002f543a0ffbbd7ae Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Sun, 22 Aug 2010 13:55:53 +0000 Subject: - Patch #880132 by bojanz: hook_schema() doesn't support compound foreign keys; inconsistent implementations in core. --- modules/search/search.install | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'modules/search') diff --git a/modules/search/search.install b/modules/search/search.install index a73afc751..de870085d 100644 --- a/modules/search/search.install +++ b/modules/search/search.install @@ -85,8 +85,13 @@ function search_schema() { 'sid_type' => array('sid', 'type'), ), 'foreign keys' => array( - 'sid' => array('search_dataset' => 'sid'), - 'type' => array('search_dataset' => 'type'), + 'search_dataset' => array( + 'table' => 'search_dataset', + 'columns' => array( + 'sid' => 'sid', + 'type' => 'type', + ), + ), ), 'primary key' => array('word', 'sid', 'type'), ); -- cgit v1.2.3