Koha/installer/data/mysql/db_revs/231105005.pl
Katrin Fischer a0eabd2817 Bug 35973: DBRev 23.11.05.005
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
(cherry picked from commit 6f705dfb1f)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
2024-05-23 15:44:29 +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'";
},
};