]> git.koha-community.org Git - koha.git/commit
Bug 32686: Specify action of action_logs to purge
authorAlex Buckley <alexbuckley@catalyst.net.nz>
Thu, 19 Jan 2023 01:29:37 +0000 (01:29 +0000)
committerTomas Cohen Arazi <tomascohen@theke.io>
Thu, 6 Apr 2023 13:03:08 +0000 (10:03 -0300)
commitf1ff6c57648ace2b31bca9fb3836d7ac386d2ae6
tree3fb2ab35b84b66c54cd20c0f243e785f8e055437
parentdf8aca0252750d8d660007a1d1eeaf1f483a3e84
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
Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Victor Grousset/tuxayo <victor@tuxayo.net>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
misc/cronjobs/cleanup_database.pl