From 4218a81c7a58ca521ebf00d9b21d5817b16b020d Mon Sep 17 00:00:00 2001 From: Mark Crane Date: Tue, 31 Dec 2013 10:40:38 +0000 Subject: [PATCH] Update the key references for ring groups. --- app/ring_groups/app_config.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/app/ring_groups/app_config.php b/app/ring_groups/app_config.php index a186eac214..857c13e24d 100644 --- a/app/ring_groups/app_config.php +++ b/app/ring_groups/app_config.php @@ -106,6 +106,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'] = "ring_group_uuid"; $apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = "uuid"; @@ -189,12 +191,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_domains"; + $apps[$x]['db'][$y]['fields'][$z]['key']['reference']['field'] = "domain_uuid"; $z++; $apps[$x]['db'][$y]['fields'][$z]['name'] = "ring_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_ring_groups"; + $apps[$x]['db'][$y]['fields'][$z]['key']['reference']['field'] = "ring_group_uuid"; $z++; $apps[$x]['db'][$y]['fields'][$z]['name'] = "destination_number"; $apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = "text";