Bug 19008: More database cleanups - statistics
authorFridolin Somers <fridolin.somers@biblibre.com>
Fri, 28 Jul 2017 12:12:22 +0000 (14:12 +0200)
committerLucas Gass <lucas@bywatersolutions.com>
Thu, 9 Apr 2020 20:52:48 +0000 (20:52 +0000)
commit6f9c8b9e1c597d9e7599b5a9abcd9d4147924a9f
treef5b5fcd55bc803e012029a447d059a7a541f4955
parentd35840f11dfdc74baed4acdfb6a49939bd5916a0
Bug 19008: More database cleanups - statistics

misc/cronjobs/cleanup_database.pl provides some database cleanup.
Yet some tables that could need cleanup are not in this script.

This patch adds cleanup for statistics table.

Test plan :
- Count statistics : select count(*),date(datetime) from statistics group by date(datetime);
- Run cleanup : misc/cronjobs/cleanup_database.pl -v --statistics 30
- Recount statistics

Signed-off-by: Mark Tompsett <mtompset@hotmail.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Joy Nelson <joy@bywatersolutions.com>
(cherry picked from commit 20118bb795ce046c2b00152aeccb94ae998375e6)

Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
misc/cronjobs/cleanup_database.pl