Add new field user_uuid and permission destination_user_uuid

This commit is contained in:
FusionPBX
2021-06-04 10:33:50 -06:00
committed by GitHub
parent 3073001e5c
commit c1caba1e7c

View File

@@ -130,6 +130,9 @@
$apps[$x]['permissions'][$y]['name'] = "destination_fax";
$apps[$x]['permissions'][$y]['groups'][] = "superadmin";
$y++;
$apps[$x]['permissions'][$y]['name'] = "destination_user_uuid";
$apps[$x]['permissions'][$y]['groups'][] = "superadmin";
$y++;
$apps[$x]['permissions'][$y]['name'] = "destination_emergency";
$apps[$x]['permissions'][$y]['groups'][] = "superadmin";
$y++;
@@ -225,6 +228,14 @@
$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'] = "user_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_users";
$apps[$x]['db'][$y]['fields'][$z]['key']['reference']['field'] = "user_uuid";
$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";