Add Call Logs and CDR JSON, and Call Flows.

Move the CDR JSON and and Call Flows data to their own tables and add a new table for the Call Log.
This commit is contained in:
FusionPBX
2024-03-11 18:51:36 -06:00
committed by GitHub
parent 4eed5eaba1
commit e6ca01a7af
4 changed files with 316 additions and 161 deletions
+12 -4
View File
@@ -878,6 +878,12 @@
$apps[$x]['db'][$y]['fields'][$z]['key']['reference']['field'] = "domain_uuid";
$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
$z++;
$apps[$x]['db'][$y]['fields'][$z]['name'] = "start_stamp";
$apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = 'timestamptz';
$apps[$x]['db'][$y]['fields'][$z]['type']['sqlite'] = 'date';
$apps[$x]['db'][$y]['fields'][$z]['type']['mysql'] = 'date';
$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
$z++;
$apps[$x]['db'][$y]['fields'][$z]['name'] = "json";
$apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = "jsonb";
$apps[$x]['db'][$y]['fields'][$z]['type']['sqlite'] = "text";
@@ -970,10 +976,10 @@
//schema details
$y++;
$apps[$x]['db'][$y]['table']['name'] = "v_call_logs";
$apps[$x]['db'][$y]['table']['name'] = "v_xml_cdr_logs";
$apps[$x]['db'][$y]['table']['parent'] = "";
$z=0;
$apps[$x]['db'][$y]['fields'][$z]['name'] = "call_log_uuid";
$apps[$x]['db'][$y]['fields'][$z]['name'] = "xml_cdr_log_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)";
@@ -998,13 +1004,15 @@
$apps[$x]['db'][$y]['fields'][$z]['key']['reference']['field'] = "domain_uuid";
$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
$z++;
$apps[$x]['db'][$y]['fields'][$z]['name'] = "call_log_date";
$apps[$x]['db'][$y]['fields'][$z]['name']['text'] = "log_date";
$apps[$x]['db'][$y]['fields'][$z]['name']['deprecated'] = "call_log_date";
$apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = "text";
$apps[$x]['db'][$y]['fields'][$z]['type']['sqlite'] = "text";
$apps[$x]['db'][$y]['fields'][$z]['type']['mysql'] = "text";
$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
$z++;
$apps[$x]['db'][$y]['fields'][$z]['name'] = "call_log_content";
$apps[$x]['db'][$y]['fields'][$z]['name']['text'] = "log_content";
$apps[$x]['db'][$y]['fields'][$z]['name']['deprecated'] = "call_log_content";
$apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = "text";
$apps[$x]['db'][$y]['fields'][$z]['type']['sqlite'] = "text";
$apps[$x]['db'][$y]['fields'][$z]['type']['mysql'] = "text";