Bug 30565: DBRev 21.12.00.040
[koha.git] / installer / data / mysql / db_revs / 210600017.pl
1 use Modern::Perl;
2
3 return {
4     bug_number => "28872",
5     description => "Update syspref values from on and off to 1 and 0",
6     up => sub {
7         my ($args) = @_;
8         my ($dbh, $out) = @$args{qw(dbh out)};
9         $dbh->do(q{update systempreferences set value=1 where variable in ('AcquisitionLog', 'NewsLog', 'NoticesLog') and value='on'});
10         $dbh->do(q{update systempreferences set value=0 where variable in ('AcquisitionLog', 'NewsLog', 'NoticesLog') and value='off'});
11     },
12 }