From 0c1c1985bc3a2f49d89c3ed313f9b128cf590676 Mon Sep 17 00:00:00 2001 From: Mark Crane Date: Sat, 20 Sep 2014 02:51:48 +0000 Subject: [PATCH] Fix primary key for menu languages, items and item groups --- core/menu/app_config.php | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/core/menu/app_config.php b/core/menu/app_config.php index ac0f34693e..00d47a7a37 100644 --- a/core/menu/app_config.php +++ b/core/menu/app_config.php @@ -223,7 +223,7 @@ $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'] = "primary"; $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = ""; $z++; $apps[$x]['db'][$y]['fields'][$z]['name']['text'] = "menu_uuid"; @@ -298,6 +298,13 @@ $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = ""; $apps[$x]['db'][$y]['fields'][$z]['deprecated'] = "true"; $z++; + $apps[$x]['db'][$y]['fields'][$z]['name'] = "menu_item_group_uuid"; + $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]['description']['en-us'] = ""; + $z++; $apps[$x]['db'][$y]['fields'][$z]['name']['text'] = "menu_uuid"; $apps[$x]['db'][$y]['fields'][$z]['name']['deprecated'] = "menu_guid"; $apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = "uuid"; @@ -325,11 +332,11 @@ $y = 3; //table array index $z = 0; //field array index $apps[$x]['db'][$y]['table'] = "v_menu_languages"; - $apps[$x]['db'][$y]['fields'][$z]['name']['text'] = "menu_language_uuid"; + $apps[$x]['db'][$y]['fields'][$z]['name'] = "menu_language_uuid"; $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'] = "primary"; $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = ""; $z++; $apps[$x]['db'][$y]['fields'][$z]['name']['text'] = "menu_uuid";