]> git.koha-community.org Git - koha.git/commit
Bug 15188 - Fixes remove_unused_authorities.pl will delete all authorities if zebra...
authorAlex Arnaud <alex.arnaud@biblibre.com>
Tue, 29 Dec 2015 15:46:38 +0000 (16:46 +0100)
committerBrendan A Gallagher <brendan@bywatersolutions.com>
Wed, 27 Jan 2016 01:03:05 +0000 (01:03 +0000)
commit128e7f54b17501ee43614aa8f8c50c3789921f08
tree227fc9b8701061832e6e4495e198fde8f3cb60f8
parentd10adb26aa661a6b5f6dc9b2fd6f8ab966f98918
 Bug 15188 - Fixes remove_unused_authorities.pl will delete all authorities if zebra is not running

Test plan:

1) Shut down zebra: koha-zebra-ctl.sh stop
2) Execute the script: remove_unused_authorities.pl (with -t if you don't want to really delete from your database).
3) Check that the script would have deleted all the authorities (eg: 31449 authorities parsed, 31449 deleted and 0 unchanged because used).
4) Apply patch
5) Run, notice that the script dies because zebra is unavailable

Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Brendan A Gallagher <brendan@bywatersolutions.com>
misc/migration_tools/remove_unused_authorities.pl