Koha/installer/data/mysql/db_revs/220600016.pl
Tomas Cohen Arazi 70ff3607b5
Bug 28854: Fix permissions problem
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
2022-07-13 19:09:39 -03:00

17 lines
504 B
Perl
Executable file

use Modern::Perl;
return {
bug_number => "28854",
description => "Add new unique index to return claims",
up => sub {
my ($args) = @_;
my ($dbh, $out) = @$args{qw(dbh out)};
if ( !unique_key_exists('return_claims', 'item_issue') ) {
$dbh->do(q{
ALTER TABLE return_claims
ADD UNIQUE KEY item_issue (`itemnumber`,`issue_id`)
});
say $out "item_issue index added to return_claims";
}
},
};