Koha-clms/misc/migration_tools
Katrin Fischer 59d07337de
Bug 41008: Fix bulkmarimport.pl -a -d
After bug 35659 that added the OAI harvester to Koha the -d switch
for deleting authorities before importing with bulkmarcimport.pl
was broken and resulted in a FK error.

Switching from truncate to DELETE FROM like we already did for items,
biblio etc. fixes the issue.

To test:
- Make sure you have some authorities in your database
- Export some into a file for importing
- Run bulkmarcimport -a -d --file <filename>
- Verify you get the a DB FK constraint error.
- Apply patch
- Repeat steps, verify the script now works as expected again
  * Existing authorities are deleted
  * File is imported

Signed-off-by: David Cook <dcook@prosentient.com.au>
Signed-off-by: Jan Kissig <bibliothek@th-wildau.de>

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
2025-12-01 08:34:03 -07:00
..
22_to_30 Bug 39325: Manual fixes 2025-04-28 18:51:23 +02:00
ifla Bug 40163: Fix several http addresses in the code docs 2025-09-23 16:21:29 -06:00
buildCOUNTRY.pl Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
buildEDITORS.pl Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
buildLANG.pl Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
build_oai_sets.pl Bug 40163: Fix several http addresses in the code docs 2025-09-23 16:21:29 -06:00
bulkmarcimport.pl Bug 41008: Fix bulkmarimport.pl -a -d 2025-12-01 08:34:03 -07:00
checkNonIndexedBiblios.pl Bug 40163: Fix several http addresses in the code docs 2025-09-23 16:21:29 -06:00
create_analytical_rel.pl Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
import_lexile.pl Bug 40163: Fix several http addresses in the code docs 2025-09-23 16:21:29 -06:00
koha-svc.pl Bug 40163: Fix several http addresses in the code docs 2025-09-23 16:21:29 -06:00
rebuild_zebra.pl Bug 40163: Fix several http addresses in the code docs 2025-09-23 16:21:29 -06:00
rebuild_zebra_sliced.sh Bug 13660: Exclude export phase and use existing exported MARCXML - rebuild_zebra_sliced.sh 2018-01-09 17:23:50 -03:00
remove_unused_authorities.pl Bug 40163: Fix several http addresses in the code docs 2025-09-23 16:21:29 -06:00
switch_marc21_series_info.pl Bug 40163: Fix several http addresses in the code docs 2025-09-23 16:21:29 -06:00
upgradeitems.pl Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00