[Koha-bugs] [Bug 26326] Add Koha Objects for Import Records and Import Record Matches

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Tue Mar 30 16:53:01 CEST 2021


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

Owen Leonard <oleonard at myacpl.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|Needs Signoff               |Failed QA

--- Comment #4 from Owen Leonard <oleonard at myacpl.org> ---
I get an error when running updatedatabase:

DEV atomic update: bug_26326.perl
Atomic update generated errors: {UNKNOWN}: DBI Exception: DBD::mysql::db do
failed: Can't DROP 'PRIMARY'; check that column/key exists [for Statement
"ALTER TABLE import_record_matches DROP PRIMARY KEY"]  at
/usr/share/perl5/DBIx/Class/Schema.pm line 1118.
        DBIx::Class::Schema::throw_exception(Koha::Schema=HASH(0x55bbeee34d60),
"DBI Exception: DBD::mysql::db do failed: Can't DROP 'PRIMARY'"...) called at
/usr/share/perl5/DBIx/Class/Storage.pm line 113
       
DBIx::Class::Storage::throw_exception(DBIx::Class::Storage::DBI::mysql=HASH(0x55bbee117670),
"DBI Exception: DBD::mysql::db do failed: Can't DROP 'PRIMARY'"...) called at
/usr/share/perl5/DBIx/Class/Storage/DBI.pm line 1501
        DBIx::Class::Storage::DBI::__ANON__("DBD::mysql::db do failed: Can't
DROP 'PRIMARY'; check that co"..., DBI::db=HASH(0x55bbef809d70), undef) called
at (eval 1457) line 7
        eval '$DBversion = \'XXX\';
if( CheckVersion( $DBversion ) ) {
    unless(
        primary_key_exists(\'import_record_matches\',\'import_record_id\') &&
        primary_key_exists(\'import_record_matches\',\'candidate_match_id\')
    ){
        $dbh->do( "ALTER TABLE import_record_matches DROP PRIMARY KEY" );
        $dbh->do( "ALTER TABLE import_record_matches ADD PRIMARY KEY
(import_record_id,candidate_match_id)" );
    }

    NewVersion( $DBversion, 26326, "Add primary key to import_record_matches");
}
' called at /kohadevbox/koha/installer/data/mysql/updatedatabase.pl line 23755

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


More information about the Koha-bugs mailing list