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/shortcut/shortcut.install | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) (limited to 'modules/shortcut') diff --git a/modules/shortcut/shortcut.install b/modules/shortcut/shortcut.install index 39032bbc6..ae23d504b 100644 --- a/modules/shortcut/shortcut.install +++ b/modules/shortcut/shortcut.install @@ -63,7 +63,10 @@ function shortcut_schema() { ), 'primary key' => array('set_name'), 'foreign keys' => array( - 'set_name' => array('menu_links' => 'menu_name'), + 'menu_name' => array( + 'table' => 'menu_links', + 'columns' => array('set_name' => 'menu_name'), + ), ), ); @@ -90,8 +93,14 @@ function shortcut_schema() { 'set_name' => array('set_name'), ), 'foreign keys' => array( - 'uid' => array('users' => 'uid'), - 'set_name' => array('shortcut_set' => 'set_name'), + 'set_user' => array( + 'table' => 'users', + 'columns' => array('uid' => 'uid'), + ), + 'set_name' => array( + 'table' => 'shortcut_set', + 'columns' => array('set_name' => 'set_name'), + ), ), ); -- cgit v1.2.3