Koha/installer/data/mysql/db_revs/230600013.pl
Tomas Cohen Arazi 64d63cba2e
Bug 28966: DBRev 23.06.00.013
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
2023-07-26 15:41:14 -03:00

18 lines
525 B
Perl
Executable file

use Modern::Perl;
return {
bug_number => "28966",
description => "Holds queue view too slow to load for large numbers of holds",
up => sub {
my ($args) = @_;
my ( $dbh, $out ) = @$args{qw(dbh out)};
unless ( primary_key_exists( 'tmp_holdsqueue', 'itemnumber' ) ) {
$dbh->do(
q{ALTER TABLE tmp_holdsqueue ADD PRIMARY KEY (itemnumber)}
);
}
say $out "Set primary key for table 'tmp_holdsqueue' to 'itemnumber'";
},
};