diff --git a/app/ring_groups/app_config.php b/app/ring_groups/app_config.php index 3843069185..c4b5b6c92d 100644 --- a/app/ring_groups/app_config.php +++ b/app/ring_groups/app_config.php @@ -21,7 +21,7 @@ $apps[$x]['description']['pt-br'] = ""; //destination details - $y = 0; + $y=0; $apps[$x]['destinations'][$y]['type'] = "sql"; $apps[$x]['destinations'][$y]['label'] = "ring_groups"; $apps[$x]['destinations'][$y]['name'] = "ring_groups"; @@ -35,7 +35,7 @@ $apps[$x]['destinations'][$y]['select_label'] = "\${destination} \${name} \${description}"; //permission details - $y = 0; + $y=0; $apps[$x]['permissions'][$y]['name'] = "ring_group_view"; $apps[$x]['permissions'][$y]['menu']['uuid'] = "b30f085f-3ec6-2819-7e62-53dfba5cb8d5"; $apps[$x]['permissions'][$y]['groups'][] = "superadmin"; @@ -98,7 +98,7 @@ $apps[$x]['permissions'][$y]['groups'][] = "admin"; //default settings - $y = 0; + $y=0; $apps[$x]['default_settings'][$y]['default_setting_uuid'] = '745d8fdc-57bc-4f43-97d7-508fda8f70a8'; $apps[$x]['default_settings'][$y]['default_setting_category'] = 'ring_group'; $apps[$x]['default_settings'][$y]['default_setting_subcategory'] = 'destination_add_rows'; @@ -117,9 +117,10 @@ $y++; //schema details - $y = 0; //table array index - $z = 0; //field array index - $apps[$x]['db'][$y]['table'] = "v_ring_groups"; + $y=0; + $apps[$x]['db'][$y]['table']['name'] = "v_ring_groups"; + $apps[$x]['db'][$y]['table']['parent'] = ""; + $z=0; $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"; @@ -208,9 +209,10 @@ $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = ""; $z++; - $y = 1; //table array index - $z = 0; //field array index - $apps[$x]['db'][$y]['table'] = "v_ring_group_destinations"; + $y++; + $apps[$x]['db'][$y]['table']['name'] = "v_ring_group_destinations"; + $apps[$x]['db'][$y]['table']['parent'] = "v_ring_groups"; + $z=0; $apps[$x]['db'][$y]['fields'][$z]['name'] = "ring_group_destination_uuid"; $apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = "uuid"; $apps[$x]['db'][$y]['fields'][$z]['type']['sqlite'] = "text"; @@ -252,9 +254,10 @@ $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = ""; $z++; - $y = 2; //table array index - $z = 0; //field array index - $apps[$x]['db'][$y]['table'] = "v_ring_group_users"; + $y++; + $apps[$x]['db'][$y]['table']['name'] = "v_ring_group_users"; + $apps[$x]['db'][$y]['table']['parent'] = "v_ring_groups"; + $z=0; $apps[$x]['db'][$y]['fields'][$z]['name']['text'] = "ring_group_user_uuid"; $apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = "uuid"; $apps[$x]['db'][$y]['fields'][$z]['type']['sqlite'] = "text";