[Koha-bugs] [Bug 18631] Cleanup_database.pl should take an option for modules in action_logs

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Tue Jul 27 20:50:39 CEST 2021


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=18631

--- Comment #4 from Nick Clemens <nick at bywatersolutions.com> ---
Created attachment 123231
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=123231&action=edit
Bug 18631: Add option to specify logs to preserve or delete in
cleanup_database.pl

This adds two new parameters:
--log_module
--preserve_log

These can be repeated to include or exclude specific modules from the cleanup

To test:
0 - Apply patch
1 - Enable cataloging log and borrowers log
2 - Make some changes to borrowers and records
3 - run cleanup databse with --logs 0 --preserve_log=MEMBERS
--preserve_log=CATALOGUING
4 - nothing is removed
5 - run cleanup databse with --logs 0 --log_module=MEMBERS
6 - the borrower logs are removed, the record changes remain
7 - run cleanup database with --logs 0
8 - record changes are removed (all other logs too)

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list