From 21fc62cd55cce18b2973d43f50409bed7644b553 Mon Sep 17 00:00:00 2001 From: Mark Crane Date: Sat, 2 Nov 2013 06:45:30 +0000 Subject: [PATCH] Workaround for a MySQL bug with ring group destinations. --- app/ring_groups/app_config.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/app/ring_groups/app_config.php b/app/ring_groups/app_config.php index 609411f7a7..a186eac214 100644 --- a/app/ring_groups/app_config.php +++ b/app/ring_groups/app_config.php @@ -126,7 +126,9 @@ $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "Enter the context."; $z++; $apps[$x]['db'][$y]['fields'][$z]['name'] = "ring_group_forward_destination"; - $apps[$x]['db'][$y]['fields'][$z]['type'] = "text"; + $apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = "text"; + $apps[$x]['db'][$y]['fields'][$z]['type']['sqlite'] = "text"; + $apps[$x]['db'][$y]['fields'][$z]['type']['mysql'] = "varchar(255)"; $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "Enter the call forward destination."; $z++; $apps[$x]['db'][$y]['fields'][$z]['name'] = "ring_group_forward_enabled"; @@ -195,7 +197,9 @@ $apps[$x]['db'][$y]['fields'][$z]['key']['type'] = "foreign"; $z++; $apps[$x]['db'][$y]['fields'][$z]['name'] = "destination_number"; - $apps[$x]['db'][$y]['fields'][$z]['type'] = "text"; + $apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = "text"; + $apps[$x]['db'][$y]['fields'][$z]['type']['sqlite'] = "text"; + $apps[$x]['db'][$y]['fields'][$z]['type']['mysql'] = "varchar(255)"; $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = ""; $z++; $z++;