Add processed as an optional column in the CDR table

This commit is contained in:
FusionPBX
2026-02-27 16:07:24 -07:00
committed by GitHub
parent 82d5b7cbbf
commit 858071307d
2 changed files with 7 additions and 2 deletions
+6 -1
View File
@@ -875,6 +875,12 @@
$apps[$x]['db'][$y]['fields'][$z]['type']['mysql'] = "char(36)"; $apps[$x]['db'][$y]['fields'][$z]['type']['mysql'] = "char(36)";
$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = ""; $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
$z++; $z++;
$apps[$x]['db'][$y]['fields'][$z]['name'] = "processed";
$apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = "boolean";
$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_flow"; $apps[$x]['db'][$y]['fields'][$z]['name'] = "call_flow";
$apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = "jsonb"; $apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = "jsonb";
$apps[$x]['db'][$y]['fields'][$z]['type']['sqlite'] = "text"; $apps[$x]['db'][$y]['fields'][$z]['type']['sqlite'] = "text";
@@ -1254,4 +1260,3 @@
$apps[$x]['db'][$y]['fields'][$z]['type']['sqlite'] = "text"; $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]['type']['mysql'] = "char(36)";
$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = ""; $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
@@ -17,7 +17,7 @@ $view['sql'] .= " c.cc_agent_uuid, c.cc_agent, c.cc_agent_type, c.cc_agent_brid
$view['sql'] .= " c.cc_queue_answered_epoch, c.cc_queue_terminated_epoch, c.cc_queue_canceled_epoch, "; $view['sql'] .= " c.cc_queue_answered_epoch, c.cc_queue_terminated_epoch, c.cc_queue_canceled_epoch, ";
$view['sql'] .= " c.cc_cancel_reason, c.cc_cause, c.waitsec, c.conference_name, c.conference_uuid, "; $view['sql'] .= " c.cc_cancel_reason, c.cc_cause, c.waitsec, c.conference_name, c.conference_uuid, ";
$view['sql'] .= " c.conference_member_id, c.digits_dialed, c.pin_number, c.status, c.hangup_cause, "; $view['sql'] .= " c.conference_member_id, c.digits_dialed, c.pin_number, c.status, c.hangup_cause, ";
$view['sql'] .= " c.hangup_cause_q850, c.sip_hangup_disposition, c.call_flow, c.xml, c.insert_date, "; $view['sql'] .= " c.hangup_cause_q850, c.sip_hangup_disposition, c.processed, c.call_flow, c.xml, c.insert_date, ";
$view['sql'] .= " c.insert_user, c.update_date, c.update_user, "; $view['sql'] .= " c.insert_user, c.update_date, c.update_user, ";
$view['sql'] .= " CASE "; $view['sql'] .= " CASE ";
$view['sql'] .= " WHEN c.json IS NOT NULL THEN c.json "; $view['sql'] .= " WHEN c.json IS NOT NULL THEN c.json ";