Koha/installer/data/mysql/db_revs/221200048.pl
Tomas Cohen Arazi 278bd72d0a
Bug 29046: DBRev 22.12.00.048
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
2023-05-18 12:13:44 -03:00

16 lines
631 B
Perl
Executable file

use Modern::Perl;
return {
bug_number => "29046",
description => "Allow setting first_valid_email_address field precedence order",
up => sub {
my ($args) = @_;
my ($dbh, $out) = @$args{qw(dbh out)};
$dbh->do(q{
INSERT IGNORE INTO systempreferences ( `variable`, `value`, `options`, `explanation`, `type` ) VALUES
('EmailFieldPrecedence', 'email|emailpro|B_email', NULL, 'Ordered list of patron email fields to use when AutoEmailPrimaryAddress is set to first valid', 'multi')
});
say $out "Added new system preference 'EmailFieldPrecedence'";
},
};