From dde2ff4e060092cd34fec3ae9751741b5bf3fea6 Mon Sep 17 00:00:00 2001 From: Mark Crane Date: Sat, 18 Oct 2014 01:06:07 +0000 Subject: [PATCH] Add group_uuid to the group users table. --- core/users/app_config.php | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/core/users/app_config.php b/core/users/app_config.php index 6a1e244e01..61dac52e21 100644 --- a/core/users/app_config.php +++ b/core/users/app_config.php @@ -322,13 +322,15 @@ $apps[$x]['db'][$y]['fields'][$z]['name']['deprecated'] = "groupid"; $apps[$x]['db'][$y]['fields'][$z]['type'] = "text"; $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = ""; - //$z++; - //$apps[$x]['db'][$y]['fields'][$z]['name'] = "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'] = "foreign"; - //$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = ""; + $z++; + $apps[$x]['db'][$y]['fields'][$z]['name'] = "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'] = "foreign"; + $apps[$x]['db'][$y]['fields'][$z]['key']['reference']['table'] = "v_groups"; + $apps[$x]['db'][$y]['fields'][$z]['key']['reference']['field'] = "group_uuid"; + $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = ""; $z++; $apps[$x]['db'][$y]['fields'][$z]['name'] = "username"; $apps[$x]['db'][$y]['fields'][$z]['type'] = "text";