]> git.koha-community.org Git - koha.git/commit
Bug 24541: Purge old messages
authorDidier Gautheron <didier.gautheron@biblibre.com>
Thu, 30 Jan 2020 09:35:31 +0000 (10:35 +0100)
committerFridolin Somers <fridolin.somers@biblibre.com>
Thu, 7 Jan 2021 14:18:59 +0000 (15:18 +0100)
commit8b1b0ba51e281731640e8a1de0f166bcfe1aea3c
tree114898d8201aa72297e1ce721850033002218169
parenta033d4c46264ed031e29d61e6a1d8f6fae0e36e3
Bug 24541: Purge old messages

misc/cronjobs/cleanup_database.pl provides some database cleanup.

This patch adds cleanup for messages table.

Test plan :
- Count messages : select count(*),date(message_date) from  messages group by date(message_date);
- Run cleanup : misc/cronjobs/cleanup_database.pl -v --confirm --messages 365
- Recount messages

Signed-off-by: Séverine QUEUNE <severine.queune@bulac.fr>
Signed-off-by: Victor Grousset/tuxayo <victor@tuxayo.net>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
(cherry picked from commit ead1493f5b3baedcc1eaf062991b8792aba7f231)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
misc/cronjobs/cleanup_database.pl