Koha/installer/data/mysql/db_revs/221200020.pl
Tomas Cohen Arazi 31b7e12d72
Bug 33192: DBRev 22.12.00.020
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
2023-04-14 11:35:42 -03:00

14 lines
544 B
Perl
Executable file

use Modern::Perl;
return {
bug_number => "33192",
description => "Rename `AutoEmailPrimaryAddress` to `EmailFieldPrimary`",
up => sub {
my ($args) = @_;
my ($dbh, $out) = @$args{qw(dbh out)};
$dbh->do(q{
UPDATE systempreferences SET variable = 'EmailFieldPrimary', explanation = 'Defines the default email address field where patron email notices are sent.' WHERE variable = 'AutoEmailPrimaryAddress'
});
say $out "Updated system preference 'AutoEmailPrimaryAddress'";
},
};