diff --git a/installer/data/mysql/atomicupdate/bug_37216.pl b/installer/data/mysql/atomicupdate/bug_37216.pl new file mode 100755 index 0000000000..e773122adf --- /dev/null +++ b/installer/data/mysql/atomicupdate/bug_37216.pl @@ -0,0 +1,18 @@ +use Modern::Perl; +use Koha::Installer::Output qw(say_warning say_failure say_success say_info); + +return { + bug_number => "37216", + description => "Ensure EmailFieldSelection options are correct", + up => sub { + my ($args) = @_; + my ( $dbh, $out ) = @$args{qw(dbh out)}; + + # Do you stuffs here + $dbh->do( + q{ UPDATE systempreferences SET options = 'email|emailpro|B_email' WHERE variable = 'EmailFieldSelection' } + ); + + say_success( $out, "Updated system preference 'EmailFieldSelection'" ); + }, +};