[Koha-bugs] [Bug 32437] When adding to a basket form a staged file and matching the imported records are ignored when set to overwrite

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Fri Mar 3 08:37:35 CET 2023


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=32437

--- Comment #21 from Marcel de Rooy <m.de.rooy at rijksmuseum.nl> ---
        } elsif( !primary_key_exists('import_auths','import_record_id') ){
            say $out "Found an existing PRIMARY KEY on import_auths table";
            say $out "You must delete this key and replace it with a key on
import_record_id";
        } else {
            say $out "PRIMARY KEY import_record_id on import_auths already
exists";

Since we assume in the schema that the primary key is import_record_id, we
should bail out in the middle clause where we find another PK.

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list