Add domain_uuid to the voicemail destinations table.

This commit is contained in:
Mark Crane
2014-12-04 07:51:05 +00:00
parent 5ac03c3df5
commit 22b85f7d92
2 changed files with 10 additions and 2 deletions

View File

@@ -164,6 +164,12 @@
$y = 2; //table array index
$z = 0; //field array index
$apps[$x]['db'][$y]['table'] = "v_voicemail_destinations";
$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";
$apps[$x]['db'][$y]['fields'][$z]['type']['mysql'] = "char(36)";
$apps[$x]['db'][$y]['fields'][$z]['key']['type'] = "foreign";
$z++;
$apps[$x]['db'][$y]['fields'][$z]['name'] = "voicemail_destination_uuid";
$apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = "uuid";
$apps[$x]['db'][$y]['fields'][$z]['type']['sqlite'] = "text";

View File

@@ -90,15 +90,17 @@ else {
$voicemail_uuid_copy = check_str($_REQUEST["voicemail_uuid_copy"]);
//assign the user to the extension
$sqli = "
insert into
v_voicemail_destinations
insert into
v_voicemail_destinations
(
domain_uuid,
voicemail_destination_uuid,
voicemail_uuid,
voicemail_uuid_copy
)
values
(
'".$domain_uuid."',
'".uuid()."',
'".$voicemail_uuid."',
'".$voicemail_uuid_copy."'