]> git.koha-community.org Git - koha.git/commit
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)
committerChris Nighswonger <chris.nighswonger@gmail.com>
Sat, 21 Jan 2012 06:22:14 +0000 (01:22 -0500)
commit2a4a019c9f35d7b5772c52672f4ee4595ce50a29
tree1cf4454b546c6fbe83b469bc2d2493d03e65b72d
parentfcdd5df04c90e5800b191e58376be86d8a6809ab
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>
(cherry picked from commit 73c5cb327723cdba39e52458a4aff824cc540a52)

Signed-off-by: Chris Nighswonger <chris.nighswonger@gmail.com>
(cherry picked from commit c6bfb513900beb25bcbcb6ba73ae5a713383382a)

Signed-off-by: Chris Nighswonger <chris.nighswonger@gmail.com>
misc/cronjobs/cleanup_database.pl