Koha/installer/data/mysql/db_revs/221200040.pl
Tomas Cohen Arazi 17cd6180cb
Bug 33488: DBRev 22.12.00.040
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
2023-05-12 17:50:11 -03:00

15 lines
517 B
Perl
Executable file

use Modern::Perl;
return {
bug_number => "33488",
description => "Add index to fromBranch for branch_transfer_limits",
up => sub {
my ($args) = @_;
my ($dbh, $out) = @$args{qw(dbh out)};
# Do you stuffs here
unless ( index_exists( 'branch_transfer_limits', 'fromBranch_idx' ) ) {
$dbh->do(q{CREATE INDEX fromBranch_idx ON branch_transfer_limits ( fromBranch )});
say $out "Added new index on branch_transfer_limits.fromBranch";
}
},
};