Koha/installer/data/mysql/db_revs/211200057.pl
Fridolin Somers 0ffd2ee8da Bug 30852: DBRev 21.12.00.057
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
2022-05-25 20:36:34 -10:00

16 lines
427 B
Perl
Executable file

use Modern::Perl;
return {
bug_number => "30852",
description => "Add index to article_requests.debit_id",
up => sub {
my ($args) = @_;
my ($dbh, $out) = @$args{qw(dbh out)};
unless ( index_exists( 'article_requests', 'debit_id' ) ) {
$dbh->do(q{
ALTER TABLE `article_requests`
ADD KEY `debit_id` (`debit_id`)
});
}
},
};