Remodel the destinations table rename several fields and add new fields.

This commit is contained in:
Mark Crane
2012-10-23 10:00:03 +00:00
parent 4d6205656d
commit e501279cff
4 changed files with 223 additions and 63 deletions
+31 -4
View File
@@ -71,17 +71,44 @@
$apps[$x]['db'][$y]['fields'][$z]['type']['mysql'] = 'char(36)';
$apps[$x]['db'][$y]['fields'][$z]['key']['type'] = 'primary';
$z++;
$apps[$x]['db'][$y]['fields'][$z]['name'] = 'destination_name';
$apps[$x]['db'][$y]['fields'][$z]['name'] = 'dialplan_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_dialplans';
$apps[$x]['db'][$y]['fields'][$z]['key']['reference']['field'] = 'dialplan_uuid';
$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = '';
$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';
$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = 'Enter the name.';
$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = 'Select the type.';
$z++;
$apps[$x]['db'][$y]['fields'][$z]['name']['text'] = 'destination_number';
$apps[$x]['db'][$y]['fields'][$z]['name']['deprecated'] = 'destination_number';
$apps[$x]['db'][$y]['fields'][$z]['type'] = 'text';
$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = 'Enter the number.';
$z++;
$apps[$x]['db'][$y]['fields'][$z]['name'] = 'destination_caller_id_name';
$apps[$x]['db'][$y]['fields'][$z]['type'] = 'text';
$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = 'Enter the caller id name.';
$z++;
$apps[$x]['db'][$y]['fields'][$z]['name'] = 'destination_caller_id_number';
$apps[$x]['db'][$y]['fields'][$z]['type'] = 'text';
$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = 'Enter the caller id number.';
$z++;
$apps[$x]['db'][$y]['fields'][$z]['name'] = 'destination_context';
$apps[$x]['db'][$y]['fields'][$z]['type'] = 'text';
$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = 'Enter the context.';
$z++;
$apps[$x]['db'][$y]['fields'][$z]['name'] = 'destination_extension';
$apps[$x]['db'][$y]['fields'][$z]['name'] = 'destination_app';
$apps[$x]['db'][$y]['fields'][$z]['type'] = 'text';
$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = 'Enter the extension.';
$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = 'Enter the application.';
$z++;
$apps[$x]['db'][$y]['fields'][$z]['name'] = 'destination_data';
$apps[$x]['db'][$y]['fields'][$z]['type'] = 'text';
$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = 'Enter the data.';
$z++;
$apps[$x]['db'][$y]['fields'][$z]['name'] = 'destination_enabled';
$apps[$x]['db'][$y]['fields'][$z]['type'] = 'text';