From 6ce2d44fefbb1062b019438384c01a94a8f54cdc Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Wed, 15 Feb 2017 22:17:18 -0700 Subject: [PATCH] Update app_config.php --- app/contacts/app_config.php | 69 ++++++++++++++++++++++++------------- 1 file changed, 45 insertions(+), 24 deletions(-) diff --git a/app/contacts/app_config.php b/app/contacts/app_config.php index 1d475b2dad..4e5c02637b 100644 --- a/app/contacts/app_config.php +++ b/app/contacts/app_config.php @@ -20,7 +20,7 @@ $apps[$x]['description']['pt-br'] = ""; //permission details - $y = 0; + $y=0; $apps[$x]['permissions'][$y]['name'] = "contact_view"; $apps[$x]['permissions'][$y]['menu']['uuid'] = "f14e6ab6-6565-d4e6-cbad-a51d2e3e8ec6"; $apps[$x]['permissions'][$y]['groups'][] = "superadmin"; @@ -201,9 +201,10 @@ //schema details - $y = 0; //table array index - $z = 0; //field array index - $apps[$x]['db'][$y]['table'] = "v_contacts"; + $y=0; + $apps[$x]['db'][$y]['table']['name'] = "v_contacts"; + $apps[$x]['db'][$y]['table']['parent'] = ""; + $z=0; $apps[$x]['db'][$y]['fields'][$z]['name']['text'] = "id"; $apps[$x]['db'][$y]['fields'][$z]['name']['deprecated'] = "contact_id"; $apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = "serial"; @@ -306,8 +307,10 @@ $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = ""; $z++; - $y++; //table array index - $apps[$x]['db'][$y]['table'] = "v_contact_addresses"; + $y++; + $apps[$x]['db'][$y]['table']['name'] = "v_contact_addresses"; + $apps[$x]['db'][$y]['table']['parent'] = "v_contacts"; + $z=0; $apps[$x]['db'][$y]['fields'][$z]['name'] = "contact_address_uuid"; $apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = "uuid"; $apps[$x]['db'][$y]['fields'][$z]['type']['sqlite'] = "text"; @@ -386,8 +389,10 @@ $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "Enter the description."; $z++; - $y++; //table array index - $apps[$x]['db'][$y]['table'] = "v_contact_phones"; + $y++; + $apps[$x]['db'][$y]['table']['name'] = "v_contact_phones"; + $apps[$x]['db'][$y]['table']['parent'] = "v_contacts"; + $z=0; $apps[$x]['db'][$y]['fields'][$z]['name'] = "contact_phone_uuid"; $apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = "uuid"; $apps[$x]['db'][$y]['fields'][$z]['type']['sqlite'] = "text"; @@ -454,8 +459,10 @@ $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "Enter the description."; $z++; - $y++; //table array index - $apps[$x]['db'][$y]['table'] = "v_contact_notes"; + $y++; + $apps[$x]['db'][$y]['table']['name'] = "v_contact_notes"; + $apps[$x]['db'][$y]['table']['parent'] = "v_contacts"; + $z=0; $apps[$x]['db'][$y]['fields'][$z]['name']['text'] = "id"; $apps[$x]['db'][$y]['fields'][$z]['name']['deprecated'] = "contacts_note_id"; $apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = "serial"; @@ -512,8 +519,10 @@ $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = ""; $z++; - $y++; //table array index - $apps[$x]['db'][$y]['table'] = "v_contact_users"; + $y++; + $apps[$x]['db'][$y]['table']['name'] = "v_contact_users"; + $apps[$x]['db'][$y]['table']['parent'] = "v_contacts"; + $z=0; $apps[$x]['db'][$y]['fields'][$z]['name'] = "contact_user_uuid"; $apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = "uuid"; $apps[$x]['db'][$y]['fields'][$z]['type']['sqlite'] = "text"; @@ -549,8 +558,10 @@ $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = ""; $z++; - $y++; //table array index - $apps[$x]['db'][$y]['table'] = "v_contact_groups"; + $y++; + $apps[$x]['db'][$y]['table']['name'] = "v_contact_groups"; + $apps[$x]['db'][$y]['table']['parent'] = "v_contacts"; + $z=0; $apps[$x]['db'][$y]['fields'][$z]['name']['text'] = "contact_group_uuid"; $apps[$x]['db'][$y]['fields'][$z]['name']['deprecated'] = "contact_groups_uuid"; $apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = "uuid"; @@ -587,8 +598,10 @@ $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = ""; $z++; - $y++; //table array index - $apps[$x]['db'][$y]['table'] = "v_contact_settings"; + $y++; + $apps[$x]['db'][$y]['table']['name'] = "v_contact_settings"; + $apps[$x]['db'][$y]['table']['parent'] = "v_contacts"; + $z=0; $apps[$x]['db'][$y]['fields'][$z]['name'] = "contact_setting_uuid"; $apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = "uuid"; $apps[$x]['db'][$y]['fields'][$z]['type']['sqlite'] = "text"; @@ -638,8 +651,10 @@ $apps[$x]['db'][$y]['fields'][$z]['type'] = "text"; $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = ""; - $y++; //table array index - $apps[$x]['db'][$y]['table'] = "v_contact_relations"; + $y++; + $apps[$x]['db'][$y]['table']['name'] = "v_contact_relations"; + $apps[$x]['db'][$y]['table']['parent'] = "v_contacts"; + $z=0; $apps[$x]['db'][$y]['fields'][$z]['name'] = "contact_relation_uuid"; $apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = "uuid"; $apps[$x]['db'][$y]['fields'][$z]['type']['sqlite'] = "text"; @@ -675,8 +690,10 @@ $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = ""; $z++; - $y++; //table array index - $apps[$x]['db'][$y]['table'] = "v_contact_emails"; + $y++; + $apps[$x]['db'][$y]['table']['name'] = "v_contact_emails"; + $apps[$x]['db'][$y]['table']['parent'] = "v_contacts"; + $z=0; $apps[$x]['db'][$y]['fields'][$z]['name'] = "contact_email_uuid"; $apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = "uuid"; $apps[$x]['db'][$y]['fields'][$z]['type']['sqlite'] = "text"; @@ -719,8 +736,10 @@ $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "Enter the email description."; $z++; - $y++; //table array index - $apps[$x]['db'][$y]['table'] = "v_contact_urls"; + $y++; + $apps[$x]['db'][$y]['table']['name'] = "v_contact_urls"; + $apps[$x]['db'][$y]['table']['parent'] = "v_contacts"; + $z=0; $apps[$x]['db'][$y]['fields'][$z]['name'] = "contact_url_uuid"; $apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = "uuid"; $apps[$x]['db'][$y]['fields'][$z]['type']['sqlite'] = "text"; @@ -767,8 +786,10 @@ $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "Enter the URL description."; $z++; - $y++; //table array index - $apps[$x]['db'][$y]['table'] = 'v_contact_times'; + $y++; + $apps[$x]['db'][$y]['table']['name'] = "v_contact_times"; + $apps[$x]['db'][$y]['table']['parent'] = "v_contacts"; + $z=0; $apps[$x]['db'][$y]['fields'][$z]['name'] = 'domain_uuid'; $apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = 'uuid'; $apps[$x]['db'][$y]['fields'][$z]['type']['sqlite'] = 'text';