Update fusionpbx-maintenance

This commit is contained in:
FusionPBX 2021-04-26 11:57:23 -06:00 committed by GitHub
parent 59c4b7df5b
commit e81f22f4c7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 0 deletions

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";