Koha/installer/data/mysql/db_revs/221200035.pl
Tomas Cohen Arazi f4f5efddd4
Bug 33567: DBRev 22.12.00.035
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
2023-05-12 11:22:43 -03:00

17 lines
494 B
Perl
Executable file

use Modern::Perl;
return {
bug_number => 33567,
description => "Replace empty Reference_NFL_Statuses pref",
up => sub {
my ($args) = @_;
my ($dbh, $out) = @$args{qw(dbh out)};
my $rv = $dbh->do(q{
UPDATE systempreferences SET value='1|2'
WHERE variable = 'Reference_NFL_Statuses' AND COALESCE(value,'')=''
});
say $out "Updated preference Reference_NFL_Statuses to default"
if $rv && $rv == 1;
},
};