Bug 33117: DBRev 23.06.00.006
[koha.git] / installer / data / mysql / db_revs / 230600006.pl
1 use Modern::Perl;
2
3 return {
4     bug_number  => "33117",
5     description => "Patron checkout is not able to find patrons if using a second surname or other name during the search",
6     up => sub {
7         my ($args) = @_;
8         my ( $dbh, $out ) = @$args{qw(dbh out)};
9
10         $dbh->do(q{
11             INSERT INTO systempreferences (`variable`,`value`,`explanation`,`options`,`type`)
12             VALUES ('DefaultPatronSearchMethod','starts_with','Allows staff to set a default method when searching for patrons with autocomplete','starts_with|contains','Choice');
13         });
14
15         say $out "Added new system preference 'DefaultPatronSearchMethod'";
16     },
17 };