From e0840a22d206f9952d2ab8417496c4246ce8da96 Mon Sep 17 00:00:00 2001 From: Mark Crane Date: Fri, 13 Sep 2013 00:57:38 +0000 Subject: [PATCH] Fix the app_config.php schema for extensions correct the key type and set as a foreign key. Thanks Willem for reporting this and NYSolutions for reminding me. --- app/extensions/app_config.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/extensions/app_config.php b/app/extensions/app_config.php index ec366d1aef..0c8c01e6cb 100644 --- a/app/extensions/app_config.php +++ b/app/extensions/app_config.php @@ -273,7 +273,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_follow_me'; + $apps[$x]['db'][$y]['fields'][$z]['key']['reference']['field'] = 'follow_me_uuid'; $z++; $apps[$x]['db'][$y]['fields'][$z]['name'] = 'enabled'; $apps[$x]['db'][$y]['fields'][$z]['type'] = 'text';