Koha/installer/data/mysql/db_revs/220600063.pl
Tomas Cohen Arazi 26c011f972
Bug 31569: DBRev 22.06.00.063
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
2022-10-17 08:23:36 -03:00

14 lines
430 B
Perl
Executable file

use Modern::Perl;
return {
bug_number => "31569",
description => "Add primary key for import_biblios",
up => sub {
my ($args) = @_;
my ($dbh, $out) = @$args{qw(dbh out)};
unless( primary_key_exists('import_biblios') ){
$dbh->do(q{ALTER TABLE import_biblios ADD PRIMARY KEY (import_record_id)});
say $out "Added primary key to import_biblios table";
}
},
};