]> git.koha-community.org Git - koha.git/commit
Bug 15563: (follow-up) Combine methods, add count, obey confirm
authorNick Clemens <nick@bywatersolutions.com>
Fri, 23 Apr 2021 12:36:54 +0000 (12:36 +0000)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Tue, 27 Apr 2021 14:23:49 +0000 (16:23 +0200)
commitb7a199ffe742545234ca97d5c2a199eed0ef44a1
tree03d88bcfc35993b555dd9a510cf4729d6bd76399
parentdaf2669405a282a14d35525678d4b8c9d6077002
Bug 15563: (follow-up) Combine methods, add count, obey confirm

This patch moves the SQL to a subroutine and uses the Label delete method to
remove the batches

We now return a count and do not delete if --confirm flag is not passed

Repeate previous test plan, confirm works as expected

JD amended patch: perltidy

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
misc/cronjobs/cleanup_database.pl