From b550cc9ce561dc5f7aa093bdd86aaacf15c95cc9 Mon Sep 17 00:00:00 2001 From: Mark Crane Date: Sat, 5 Jan 2013 00:28:08 +0000 Subject: [PATCH] Change the fax_uuid from primary key to a foreign key in the destinations table. --- app/destinations/app_config.php | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/app/destinations/app_config.php b/app/destinations/app_config.php index d8a27eddf0..32cbdce9a3 100644 --- a/app/destinations/app_config.php +++ b/app/destinations/app_config.php @@ -80,6 +80,13 @@ $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'] = 'fax_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']['text'] = 'destination_type'; $apps[$x]['db'][$y]['fields'][$z]['name']['deprecated'] = 'destination_name'; $apps[$x]['db'][$y]['fields'][$z]['type'] = 'text'; @@ -110,13 +117,6 @@ $apps[$x]['db'][$y]['fields'][$z]['type'] = 'text'; $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = 'Enter the data.'; $z++; - $apps[$x]['db'][$y]['fields'][$z]['name'] = 'fax_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'] = 'destination_enabled'; $apps[$x]['db'][$y]['fields'][$z]['type'] = 'text'; $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = '';