Koha/installer/data/mysql/db_revs/230600003.pl
Tomas Cohen Arazi 61e5bab673
Bug 32478: DBRev 23.06.00.003
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
2023-06-07 15:25:23 -03:00

17 lines
576 B
Perl
Executable file

use Modern::Perl;
use C4::Context;
return {
bug_number => "32478",
description => "Remove usage of Koha::Config::SysPref->find since bypasses cache",
up => sub {
my ($args) = @_;
my ($dbh, $out) = @$args{qw(dbh out)};
$dbh->do(q{UPDATE `systempreferences` SET `value` = REPLACE(`value`, 'NULL', 'null') WHERE `variable` = 'ItemsDeniedRenewal'});
say $out "Replace 'NULL' with 'null' in ItemsDeniedRenewal system preference";
C4::Context->clear_syspref_cache();
say $out "Clear system preference cache";
},
};