Bug 7240: Cleaning up import tables and action_logs
authorMarcel de Rooy <m.de.rooy@rijksmuseum.nl>
Mon, 21 Nov 2011 11:21:11 +0000 (12:21 +0100)
committerPaul Poulain <paul.poulain@biblibre.com>
Fri, 13 Jan 2012 11:20:51 +0000 (12:20 +0100)
commit73c5cb327723cdba39e52458a4aff824cc540a52
treee4a689043ec7b7a00081e36807b9d91cf2924e72
parent000047769f12c55d59e444041ddcc0aaf5613fe4
Bug 7240: Cleaning up import tables and action_logs

This patch lets cleanup_database also purge older records from the (five) import tables and the action_logs table.
Two new command line parameters are introduced: --import and --logs.
If no number of days is specified for --zebraqueue, --import or --logs, it defaults to 30 days, 60 days resp. 180 days.
I did not add a default for --sessdays, because this parameter cannot be seen separately from parameter --sessions.

Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
Adds new parameters and code, does not change existing behaviour

Signed-off-by: Paul Poulain <paul.poulain@biblibre.com>
misc/cronjobs/cleanup_database.pl