Koha/installer/data/mysql/db_revs/210600024.pl
Jonathan Druart aa4d179256 Bug 29073: DBRev 21.06.00.024
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
2021-09-28 15:12:44 +02:00

14 lines
381 B
Perl
Executable file

use Modern::Perl;
return {
bug_number => "29073",
description => "Make DefaultHoldExpirationdate use 1/0 values",
up => sub {
my ($args) = @_;
my ($dbh, $out) = @$args{qw(dbh out)};
$dbh->do(q{
UPDATE systempreferences SET value = IF(value = 'yes',1,0)
WHERE variable = 'DefaultHoldExpirationdate';
});
},
}