[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
Mon Aug 16 21:00:50 CEST 2021


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

Andrew Fuerste-Henry <andrew at bywatersolutions.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #123231|0                           |1
        is obsolete|                            |

--- Comment #5 from Andrew Fuerste-Henry <andrew at bywatersolutions.com> ---
Created attachment 123857
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=123857&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)

Signed-off-by: Andrew Fuerste-Henry <andrew at bywatersolutions.com>

Signed-off-by: Rebecca Coert <rcoert at arlingtonva.us>

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


More information about the Koha-bugs mailing list