diff --git a/asterisk/hdaux_utilitarios_scripts/temporizador_de_dados.sh b/asterisk/hdaux_utilitarios_scripts/temporizador_de_dados.sh index 4da5801a..928b942f 100644 --- a/asterisk/hdaux_utilitarios_scripts/temporizador_de_dados.sh +++ b/asterisk/hdaux_utilitarios_scripts/temporizador_de_dados.sh @@ -59,7 +59,9 @@ pbx=("DELETE from pbx_audita_full where full_data_hora < " \ "DELETE from pbx_workflow_reg_envio_mensal where wkf_data_envio < " \ "DELETE from pbx_workflow_reg_envio where wkf_data_envio < " \ "DELETE from pbx_workflow_reg_envio_email where wkf_data_envio < " \ -"DELETE from pbx_workflow_reg_envio_email_mensal where wkf_data_envio < ") +"DELETE from pbx_workflow_reg_envio_email_mensal where wkf_data_envio < " +"DELETE from pbx_eventos_dacs where to_timestamp(uid1::real) < " +"DELETE from pbx_abandonadas_status to_timestamp(uniqueid::real) < ") query_keep_data_days="select prm_log_dias from pbx_parametros;"