From 798afaf3fe2e02bb7b1e04ff9d83a3ecc1a59e60 Mon Sep 17 00:00:00 2001 From: Mark Crane Date: Fri, 20 Sep 2013 20:13:19 +0000 Subject: [PATCH] Fix the foreign key definition for the contacts table. --- app/contacts/app_config.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/contacts/app_config.php b/app/contacts/app_config.php index 79b80f23f4..8ff28354d0 100644 --- a/app/contacts/app_config.php +++ b/app/contacts/app_config.php @@ -93,7 +93,9 @@ $apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = 'uuid'; $apps[$x]['db'][$y]['fields'][$z]['type']['sqlite'] = 'text'; $apps[$x]['db'][$y]['fields'][$z]['type']['mysql'] = 'char(36)'; - $apps[$x]['db'][$y]['fields'][$z]['key']['type'] = 'primary'; + $apps[$x]['db'][$y]['fields'][$z]['key']['type'] = 'foreign'; + $apps[$x]['db'][$y]['fields'][$z]['key']['reference']['table'] = 'v_contacts'; + $apps[$x]['db'][$y]['fields'][$z]['key']['reference']['field'] = 'contact_uuid'; $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = ''; $z++; $apps[$x]['db'][$y]['fields'][$z]['name'] = 'contact_type';