Koha/installer/data/mysql/db_revs/210600017.pl
Jonathan Druart 36ef9a219d Bug 28872: DBRev 21.06.00.017
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
2021-08-19 10:01:19 +02:00

12 lines
496 B
Perl
Executable file

use Modern::Perl;
return {
bug_number => "28872",
description => "Update syspref values from on and off to 1 and 0",
up => sub {
my ($args) = @_;
my ($dbh, $out) = @$args{qw(dbh out)};
$dbh->do(q{update systempreferences set value=1 where variable in ('AcquisitionLog', 'NewsLog', 'NoticesLog') and value='on'});
$dbh->do(q{update systempreferences set value=0 where variable in ('AcquisitionLog', 'NewsLog', 'NoticesLog') and value='off'});
},
}