瀏覽代碼

Update fusionpbx-maintenance

FusionPBX 4 年之前
父節點
當前提交
e81f22f4c7
共有 1 個文件被更改,包括 5 次插入0 次删除
  1. 5 0
      debian/resources/backup/fusionpbx-maintenance

+ 5 - 0
debian/resources/backup/fusionpbx-maintenance

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