Bug 20509 - Data consistency - authority types Bug 21011 - Data inconsistencies - items.holdingbranch | items.homebranch Bug 21150 - Data inconsistencies - item types
Bug 21169 - Data inconsistencies - records without a MARC subfield mapped with biblio.biblionumber
It would be great to run these with each upgrade and set a flag if bad data is detected to raise a warning on the About page.
I'm not sure what could be relevant to take from, but at BibLibre we have a script to check data: https://git.biblibre.com/biblibre/tools/blob/master/koha/db_check_data.sh - items.onloan without issue - Orphan deletedbiblioitems or deletedbiblio - marcxml empty - ethnicity - tables MyISAM - MARC to Koha mappings : duplicates - MARC to Koha mappings : unknown column - MARC to Koha mappings : not like default framework - Merge sysprefs - Need merge authorities - Authorised values duplicates And also to check for auto increment issues: https://git.biblibre.com/biblibre/tools/blob/master/koha/db_check_ai.sh Some of the checks output the SQL to run to fix the issue. (e.g. to remove orphan/invalid data)
Bug 21466 - Data inconsistencies - items.location values must have a corresponding authorised value
(In reply to Jonathan Druart from comment #5) > Bug 21466 - Data inconsistencies - items.location values must have a > corresponding authorised value What if they are not mapped to LOC? I think I remember patches to display as is in this case a while ago (Biblibre?)
*** Bug 4879 has been marked as a duplicate of this bug. ***