Koha/misc/migration_tools
Magnus Enger b7b4694666 Bug 12488: Make bulkmarcimport.pl -d use DELETE instead of TRUNCATE
On MySQL >= 5.5 bulkmarcimport.pl with the -d (delete) switch gives
an error like "Cannot truncate a table referenced in a foreign
key constraint". This patch proposes to replace the offending
TRUNCATE with DELETE. Auto incerement counters are reset to 1 to
preserve the functionality from TRUNCATE.

To test:
- Make sure you havae a test database with some records and items
- Run bulkmarcimport.pl with the -d switch
- Observe the error described above
- Apply this patch
- Run bulkmarcimport.pl with the -d switch again
- Observe the lack of an error
- Verify that the newly imported records and items have biblionumber
  and itemnumbers starting with 1

Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
2019-02-15 18:42:46 +00:00
..
22_to_30
build_oai_sets.pl Bug 22155: Adapt uses of biblio_metadata.marcflavour to schema 2019-01-30 11:35:34 +00:00
buildCOUNTRY.pl
buildEDITORS.pl
buildLANG.pl
bulkmarcimport.pl Bug 12488: Make bulkmarcimport.pl -d use DELETE instead of TRUNCATE 2019-02-15 18:42:46 +00:00
checkNonIndexedBiblios.pl
create_analytical_rel.pl
fix_onloan.pl
import_lexile.pl
koha-svc.pl
rebuild_zebra.pl Bug 21908: (QA follow-up) Remove useless parentheses in query 2018-12-11 19:19:47 +00:00
rebuild_zebra_sliced.sh
remove_unused_authorities.pl
switch_marc21_series_info.pl Bug 22155: Adapt uses of biblio_metadata.marcflavour to schema 2019-01-30 11:35:34 +00:00
upgradeitems.pl