Text to go in the release notes:
|
Cleanup_database can delete all statistics entries more than X days old. If one is using pseudonymization to create pseudonymized_transactions data, then one may wish to use that cleanup_database function to delete statistics entries that have been duplicated in pseudonymized_transactions.
However, not all types of transactions in statistics are duplicated in pseudonymized transactions.
Pseudonymized_transactions currently only includes checkouts, returns,
and renewals.
This patch adds two additional parameters to cleanup_database.pl:
1. `--statistics-type`
Defines the types of statistics to purge. Will purge all types if parameter is omitted. Repeatable.
2. `--statistics-type-pseudo`
Grabs values from @Koha::Statistic::pseudonymization_types. At the time of implementation these are: renew, issue, return and onsite_checkout
|