[Koha-bugs] [Bug 32686] Specify action of action_logs entries to purge

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Fri Jan 20 03:02:43 CET 2023


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

--- Comment #2 from Alex Buckley <alexbuckley at catalyst.net.nz> ---
Created attachment 145499
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=145499&action=edit
Bug 32686: Specify action of action_logs to purge

Add --log-action parameter to cleanup_database.pl

Test plan:
1. Apply patch
2. Enable cataloguing and borrowers log
3. Make some changes to borrowers, create some borrowers, and edit some
biblio records
4. Change the action_logs.timestamp for all action_logs entries to 367
days ago
5. Run cleanup_database.pl with --logs 365 --log-module=MEMBERS
--log-action=CREATE --confirm
6. Confirm only the borrowers creation action_logs entries are removed
7. Run cleanup_database.pl with --logs 365
8. Confirm all action_logs entries are removed

Sponsored-By: Toi Ohomai Institute of Technology, New Zealand

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


More information about the Koha-bugs mailing list