]> git.koha-community.org Git - koha.git/commit
Bug 19008: More database cleanups - statistics
authorFridolin Somers <fridolin.somers@biblibre.com>
Fri, 28 Jul 2017 12:12:22 +0000 (14:12 +0200)
committerJoy Nelson <joy@bywatersolutions.com>
Thu, 2 Apr 2020 18:44:50 +0000 (18:44 +0000)
commit20118bb795ce046c2b00152aeccb94ae998375e6
tree99c91d5606e3d0e9f33e71784f2366e80aca4920
parent00379c189976ac9e7e2429f5261a0b562206fc5d
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>
misc/cronjobs/cleanup_database.pl