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/profile/profile.install | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'modules/profile') diff --git a/modules/profile/profile.install b/modules/profile/profile.install index d10dc3a06..31ac41e19 100644 --- a/modules/profile/profile.install +++ b/modules/profile/profile.install @@ -138,8 +138,14 @@ function profile_schema() { 'fid' => array('fid'), ), 'foreign keys' => array( - 'fid' => array('profile_field' => 'fid'), - 'uid' => array('users' => 'uid'), + 'profile_field' => array( + 'table' => 'profile_field', + 'columns' => array('fid' => 'fid'), + ), + 'profile_user' => array( + 'table' => 'users', + 'columns' => array('uid' => 'uid'), + ), ), ); -- cgit v1.2.3