Add domain_uuid to the voicemail destinations table.

This commit is contained in:
Mark Crane
2014-12-04 07:51:05 +00:00
parent d21134bd28
commit d8faaff083
2 changed files with 10 additions and 2 deletions
+6
View File
@@ -164,6 +164,12 @@
$y = 2; //table array index $y = 2; //table array index
$z = 0; //field array index $z = 0; //field array index
$apps[$x]['db'][$y]['table'] = "v_voicemail_destinations"; $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]['name'] = "voicemail_destination_uuid";
$apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = "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']['sqlite'] = "text";
+3 -1
View File
@@ -91,14 +91,16 @@ else {
//assign the user to the extension //assign the user to the extension
$sqli = " $sqli = "
insert into insert into
v_voicemail_destinations v_voicemail_destinations
( (
domain_uuid,
voicemail_destination_uuid, voicemail_destination_uuid,
voicemail_uuid, voicemail_uuid,
voicemail_uuid_copy voicemail_uuid_copy
) )
values values
( (
'".$domain_uuid."',
'".uuid()."', '".uuid()."',
'".$voicemail_uuid."', '".$voicemail_uuid."',
'".$voicemail_uuid_copy."' '".$voicemail_uuid_copy."'