From 98178c6ef7c29f7ad3f45b3d7b6707dca5008298 Mon Sep 17 00:00:00 2001 From: Mark Crane Date: Fri, 13 Sep 2013 09:39:57 +0000 Subject: [PATCH] Fix the database app_config array on several of teh app_config file array. --- app/call_broadcast/app_config.php | 3 +++ app/call_flows/app_config.php | 2 ++ app/conference_centers/app_config.php | 20 ++++++++++++++++++++ app/conferences/app_config.php | 2 +- app/destinations/app_config.php | 4 ++++ app/devices/app_config.php | 4 ++++ app/fax/app_config.php | 9 ++++++--- app/follow_me/app_config.php | 4 ++++ 8 files changed, 44 insertions(+), 4 deletions(-) diff --git a/app/call_broadcast/app_config.php b/app/call_broadcast/app_config.php index 300645f3d4..cc30127fd0 100644 --- a/app/call_broadcast/app_config.php +++ b/app/call_broadcast/app_config.php @@ -114,6 +114,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'] = 'foreign'; + $apps[$x]['db'][$y]['fields'][$z]['key']['reference']['table'] = 'v_recordings'; + $apps[$x]['db'][$y]['fields'][$z]['key']['reference']['field'] = 'recording_uuid'; $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = ''; $z++; $apps[$x]['db'][$y]['fields'][$z]['name'] = 'broadcast_caller_id_name'; diff --git a/app/call_flows/app_config.php b/app/call_flows/app_config.php index 9bbab469a6..6f237f294a 100644 --- a/app/call_flows/app_config.php +++ b/app/call_flows/app_config.php @@ -64,6 +64,8 @@ $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_domains'; + $apps[$x]['db'][$y]['fields'][$z]['key']['reference']['field'] = 'domain_uuid'; $z++; $apps[$x]['db'][$y]['fields'][$z]['name'] = 'call_flow_uuid'; $apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = 'uuid'; diff --git a/app/conference_centers/app_config.php b/app/conference_centers/app_config.php index 0fc9220641..572a8b8372 100644 --- a/app/conference_centers/app_config.php +++ b/app/conference_centers/app_config.php @@ -185,6 +185,8 @@ $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_domains'; + $apps[$x]['db'][$y]['fields'][$z]['key']['reference']['field'] = 'domain_uuid'; $z++; $apps[$x]['db'][$y]['fields'][$z]['name'] = 'conference_room_uuid'; $apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = 'uuid'; @@ -196,12 +198,18 @@ $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_conference_centers'; + $apps[$x]['db'][$y]['fields'][$z]['key']['reference']['field'] = 'conference_center_uuid'; $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = 'Conference UUID'; $z++; $apps[$x]['db'][$y]['fields'][$z]['name'] = 'meeting_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_meetings'; + $apps[$x]['db'][$y]['fields'][$z]['key']['reference']['field'] = 'meeting_uuid'; $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = 'Meeting UUID'; $z++; $apps[$x]['db'][$y]['fields'][$z]['name'] = 'profile'; @@ -258,6 +266,8 @@ $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_domains'; + $apps[$x]['db'][$y]['fields'][$z]['key']['reference']['field'] = 'domain_uuid'; $z++; $apps[$x]['db'][$y]['fields'][$z]['name'] = 'conference_session_uuid'; $apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = 'uuid'; @@ -269,6 +279,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'] = 'foreign'; + $apps[$x]['db'][$y]['fields'][$z]['key']['reference']['table'] = 'v_meetings'; + $apps[$x]['db'][$y]['fields'][$z]['key']['reference']['field'] = 'meeting_uuid'; $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = 'meeting_uuid'; $z++; $apps[$x]['db'][$y]['fields'][$z]['name'] = 'profile'; @@ -296,6 +309,8 @@ $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_domains'; + $apps[$x]['db'][$y]['fields'][$z]['key']['reference']['field'] = 'domain_uuid'; $z++; $apps[$x]['db'][$y]['fields'][$z]['name'] = 'conference_session_detail_uuid'; $apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = 'uuid'; @@ -308,11 +323,16 @@ $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_conference_sessions'; + $apps[$x]['db'][$y]['fields'][$z]['key']['reference']['field'] = 'conference_session_uuid'; $z++; $apps[$x]['db'][$y]['fields'][$z]['name'] = 'meeting_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_meetings'; + $apps[$x]['db'][$y]['fields'][$z]['key']['reference']['field'] = 'meeting_uuid'; $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = 'meeting_uuid'; $z++; $apps[$x]['db'][$y]['fields'][$z]['name'] = 'username'; diff --git a/app/conferences/app_config.php b/app/conferences/app_config.php index 9eea615d42..ba4148a624 100644 --- a/app/conferences/app_config.php +++ b/app/conferences/app_config.php @@ -80,10 +80,10 @@ $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]['description']['en-us'] = ''; $apps[$x]['db'][$y]['fields'][$z]['key']['type'] = 'foreign'; $apps[$x]['db'][$y]['fields'][$z]['key']['reference']['table'] = 'v_dialplans'; $apps[$x]['db'][$y]['fields'][$z]['key']['reference']['field'] = 'dialplan_uuid'; + $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = ''; $z++; $apps[$x]['db'][$y]['fields'][$z]['name'] = 'conference_name'; $apps[$x]['db'][$y]['fields'][$z]['type'] = 'text'; diff --git a/app/destinations/app_config.php b/app/destinations/app_config.php index efc9de1b60..89e9f20952 100644 --- a/app/destinations/app_config.php +++ b/app/destinations/app_config.php @@ -64,6 +64,8 @@ $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_domains'; + $apps[$x]['db'][$y]['fields'][$z]['key']['reference']['field'] = 'domain_uuid'; $z++; $apps[$x]['db'][$y]['fields'][$z]['name'] = 'destination_uuid'; $apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = 'uuid'; @@ -85,6 +87,8 @@ $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_fax'; + $apps[$x]['db'][$y]['fields'][$z]['key']['reference']['field'] = 'fax_uuid'; $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = ''; $z++; $apps[$x]['db'][$y]['fields'][$z]['name']['text'] = 'destination_type'; diff --git a/app/devices/app_config.php b/app/devices/app_config.php index fee18b9745..15e7f49a7e 100644 --- a/app/devices/app_config.php +++ b/app/devices/app_config.php @@ -192,6 +192,8 @@ $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_domains'; + $apps[$x]['db'][$y]['fields'][$z]['key']['reference']['field'] = 'domain_uuid'; $z++; $apps[$x]['db'][$y]['fields'][$z]['name'] = 'device_line_uuid'; $apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = 'uuid'; @@ -204,6 +206,8 @@ $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_devices'; + $apps[$x]['db'][$y]['fields'][$z]['key']['reference']['field'] = 'device_uuid'; $z++; $apps[$x]['db'][$y]['fields'][$z]['name'] = 'line_number'; $apps[$x]['db'][$y]['fields'][$z]['type'] = 'text'; diff --git a/app/fax/app_config.php b/app/fax/app_config.php index 974dab27f8..2242747f98 100644 --- a/app/fax/app_config.php +++ b/app/fax/app_config.php @@ -208,6 +208,9 @@ $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']['type'] = 'foreign'; + $apps[$x]['db'][$y]['fields'][$z]['key']['reference']['table'] = 'v_users'; + $apps[$x]['db'][$y]['fields'][$z]['key']['reference']['field'] = 'user_uuid'; $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = ''; $y = 2; //table array index @@ -225,8 +228,8 @@ $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_domains'; - //$apps[$x]['db'][$y]['fields'][$z]['key']['reference']['field'] = 'domain_uuid'; + $apps[$x]['db'][$y]['fields'][$z]['key']['reference']['table'] = 'v_domains'; + $apps[$x]['db'][$y]['fields'][$z]['key']['reference']['field'] = 'domain_uuid'; $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = ''; $z++; $apps[$x]['db'][$y]['fields'][$z]['name'] = 'domain_name'; @@ -303,4 +306,4 @@ $apps[$x]['db'][$y]['fields'][$z]['type'] = 'text'; $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = ''; -?> +?> \ No newline at end of file diff --git a/app/follow_me/app_config.php b/app/follow_me/app_config.php index 19a15d5c47..1822a4a858 100644 --- a/app/follow_me/app_config.php +++ b/app/follow_me/app_config.php @@ -70,6 +70,8 @@ $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_domains'; + $apps[$x]['db'][$y]['fields'][$z]['key']['reference']['field'] = 'domain_uuid'; $z++; $apps[$x]['db'][$y]['fields'][$z]['name'] = 'follow_me_uuid'; $apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = 'uuid'; @@ -103,6 +105,8 @@ $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_domains'; + $apps[$x]['db'][$y]['fields'][$z]['key']['reference']['field'] = 'domain_uuid'; $z++; $apps[$x]['db'][$y]['fields'][$z]['name'] = 'follow_me_uuid'; $apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = 'uuid';