]> git.koha-community.org Git - koha.git/commit
Bug 25429: Cleanup Database - remove resolved claims returned from db after X days
authorKyle M Hall <kyle@bywatersolutions.com>
Fri, 8 May 2020 18:02:34 +0000 (14:02 -0400)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Wed, 6 Oct 2021 12:51:09 +0000 (14:51 +0200)
commite18cfe0731941a6aeba841e49b7ad09a5fd04cb2
treee771af8d239459addcc04022b7c53be8b45f35b7
parent478ffeae6030bc774f8b752b3c19e75879a3bad9
Bug 25429: Cleanup Database - remove resolved claims returned from db after X days

Add option to cleanup_database script to removed 'resolved' return claims from the database after a specified number of days.

Test Plan:
1) Apply this patch
2) Set the new syspref CleanUpDatabaseReturnClaims to a number of days
3) Run cleanup_database.pl
4) Note resolved claims older than the specified number of days are removed from the database

Bug 25429: Implement system preference, remove command line switch

Signed-off-by: Andrew Fuerste-Henry <andrew@bywatersolutions.com>
Signed-off-by: Rebecca Coert <rcoert@arlingtonva.us>
Signed-off-by: Victor Grousset/tuxayo <victor@tuxayo.net>
Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
installer/data/mysql/atomicupdate/bug_25429.perl [new file with mode: 0644]
installer/data/mysql/mandatory/sysprefs.sql
koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/circulation.pref
misc/cronjobs/cleanup_database.pl