From 9e22eeb45f35d1b540d7f076b1083e30b207a343 Mon Sep 17 00:00:00 2001 From: luis daniel lucio quiroz Date: Fri, 31 Oct 2014 21:19:54 +0000 Subject: [PATCH] lets prepare for custom settings on contacts app --- app/contacts/app_config.php | 51 +++++++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) diff --git a/app/contacts/app_config.php b/app/contacts/app_config.php index 674cf4e00a..90fdd56518 100644 --- a/app/contacts/app_config.php +++ b/app/contacts/app_config.php @@ -426,4 +426,55 @@ $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++; + + $y = 5; //table array index + $apps[$x]['db'][$y]['fields'][$z]['name'] = "contact_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_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'] = "domain_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"; + $z++; + $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"; + $apps[$x]['db'][$y]['fields'][$z]['type']['mysql'] = "char(36)"; + $apps[$x]['db'][$y]['fields'][$z]['key']['type'] = "primary"; + $z++; + $apps[$x]['db'][$y]['fields'][$z]['name'] = "contact_setting_category"; + $apps[$x]['db'][$y]['fields'][$z]['type'] = "text"; + $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "Enter the category."; + $z++; + $apps[$x]['db'][$y]['fields'][$z]['name'] = "contact_setting_subcategory"; + $apps[$x]['db'][$y]['fields'][$z]['type'] = "text"; + $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "Enter the subcategory."; + $z++; + $apps[$x]['db'][$y]['fields'][$z]['name'] = "contact_setting_name"; + $apps[$x]['db'][$y]['fields'][$z]['type'] = "text"; + $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "Enter the name."; + $z++; + $apps[$x]['db'][$y]['fields'][$z]['name'] = "contact_setting_value"; + $apps[$x]['db'][$y]['fields'][$z]['type'] = "text"; + $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "Enter the value."; + $z++; + $apps[$x]['db'][$y]['fields'][$z]['name'] = "contact_setting_order"; + $apps[$x]['db'][$y]['fields'][$z]['type'] = "numeric"; + $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = ""; + $z++; + $apps[$x]['db'][$y]['fields'][$z]['name'] = "contact_setting_enabled"; + $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'] = "contact_setting_description"; + $apps[$x]['db'][$y]['fields'][$z]['type'] = "text"; + $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = ""; ?>