Koha/installer/data/mysql/db_revs/231200021.pl
Katrin Fischer 6f705dfb1f
Bug 35973: DBRev 23.12.00.021
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
2024-04-19 18:06:35 +02:00

16 lines
583 B
Perl
Executable file

use Modern::Perl;
return {
bug_number => "35973",
description => "Correct system preference 'RedirectGuaranteeEmail'",
up => sub {
my ($args) = @_;
my ( $dbh, $out ) = @$args{qw(dbh out)};
# Do you stuffs here
$dbh->do(q{UPDATE systempreferences SET value = 1 WHERE variable = "RedirectGuaranteeEmail" and value = "yes"});
$dbh->do(q{UPDATE systempreferences SET value = 0 WHERE variable = "RedirectGuaranteeEmail" and value = "no"});
say $out "Corrected system preference 'RedirectGuaranteeEmail'";
},
};