Koha/installer/data/mysql/db_revs/210600021.pl
Jonathan Druart 1fc2e3f7a5 Bug 28774: DBRev 21.06.00.021
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
2021-08-31 10:27:52 +02:00

14 lines
343 B
Perl
Executable file

use Modern::Perl;
return {
bug_number => "28774",
description => "Delete blank rental discounts",
up => sub {
my ($args) = @_;
my ($dbh, $out) = @$args{qw(dbh out)};
$dbh->do(q{
DELETE FROM circulation_rules
WHERE rule_name = 'rentaldiscount' AND rule_value=''
});
},
}