]> 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)
committerMartin Renvoize <martin.renvoize@ptfs-europe.com>
Tue, 4 Feb 2020 13:38:06 +0000 (13:38 +0000)
commiteae2dfce063e0b39046f3fffaa460441d2d79060
tree6fcae63ce1aea292583018a4f6dd475e2d860f4d
parent6ac19e02ed1349f93303a3f24b655f38bf70fa5d
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>
misc/cronjobs/cleanup_database.pl