Update fusionpbx-maintenance

This commit is contained in:
FusionPBX
2021-04-26 11:57:23 -06:00
committed by GitHub
parent 59c4b7df5b
commit e81f22f4c7

View File

@@ -62,5 +62,10 @@ fi
#delete call detail records older 90 days
#psql --host=127.0.0.1 --username=fusionpbx -c "delete from v_xml_cdr WHERE start_stamp < NOW() - INTERVAL '90 days'"
#delete database_transactions older 90 days
psql --host=127.0.0.1 --username=fusionpbx -c "delete from v_database_transactions where transaction_date < NOW() - INTERVAL '90 days'"
#completed message
echo "Maintenance Completed";