]> 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)
committerFrédéric Demians <f.demians@tamil.fr>
Thu, 11 Feb 2016 17:57:37 +0000 (18:57 +0100)
commit61c4621217f39fff2e2d91753a028f38c6ece71e
tree32b3f295f91458bb9744f47af9a87325919f2cc3
parentc3ed8d41526221acc233182a85d66973078e8220
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>
(cherry picked from commit 128e7f54b17501ee43614aa8f8c50c3789921f08)
Signed-off-by: Julian Maurice <julian.maurice@biblibre.com>
(cherry picked from commit 6b6213deea813bf9040dfa5232546b9a48b41e37)
Signed-off-by: Frédéric Demians <f.demians@tamil.fr>
misc/migration_tools/remove_unused_authorities.pl