]> git.koha-community.org Git - koha.git/commit
Bug 26337: Pass skip_merge to DelAuthority when removing unsused authorities
authorNick Clemens <nick@bywatersolutions.com>
Tue, 1 Sep 2020 13:32:46 +0000 (13:32 +0000)
committerAndrew Fuerste-Henry <andrew@bywatersolutions.com>
Wed, 9 Dec 2020 20:57:45 +0000 (20:57 +0000)
commit98d583077de886b78d0be6129fa1e67e971c5f73
treefcc0eb1e78e39927ed2e8b2465d155d85e32dd51
parent01be119b9042c56de2adf1967bb4eabb8b787b3d
Bug 26337: Pass skip_merge to DelAuthority when removing unsused authorities

This script checks that an authority is not being used before deleting it.
We do not need to check biblios for the authority id as we have already verified it is unused.

TO test:
 1 - Reset db to koha test database
 2 - perl misc/migration_tools/remove_unused_authorities.pl -t
 3 - Note a number of unsued authorities
 4 - perl misc/migration_tools/remove_unused_authorities.pl -c
 5 - Note authorities are removed
 6 - Reset db
 7 - Apply patch
 8 - perl misc/migration_tools/remove_unused_authorities.pl -t
 9 - Note results are the same
10 - perl misc/migration_tools/remove_unused_authorities.pl -c
11 - Note results are the same

Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Josef Moravec <josef.moravec@gmail.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
(cherry picked from commit e8f39a001c979fb0ef7ac342dd07062285d0264d)

Signed-off-by: Andrew Fuerste-Henry <andrew@bywatersolutions.com>
misc/migration_tools/remove_unused_authorities.pl