Koha/installer/data/mysql/db_revs/211200008.pl
Fridolin Somers a3c2bf7b03 Bug 29495: DBRev 21.12.00.008
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
2022-01-17 14:55:56 -10:00

15 lines
410 B
Perl
Executable file

use Modern::Perl;
return {
bug_number => "29495",
description => "Drop issue_id constraint from return_claims table",
up => sub {
my ($args) = @_;
my ($dbh, $out) = @$args{qw(dbh out)};
if ( foreign_key_exists( 'return_claims', 'issue_id' ) ) {
$dbh->do(q{
ALTER TABLE return_claims DROP FOREIGN KEY issue_id
});
}
},
};