Koha/installer/data/mysql/db_revs/230501002.pl
Tomas Cohen Arazi caa46019d0 Bug 33117: Make dbrev idempotent
QA didn't spot the issue, nor I. So fixing now.

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
(cherry picked from commit 951e67a1b3dd1f26eddeaecd2dc63991f9667927)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
2023-08-07 10:56:54 -10:00

17 lines
671 B
Perl
Executable file

use Modern::Perl;
return {
bug_number => "33117",
description => "Patron checkout is not able to find patrons if using a second surname or other name during the search",
up => sub {
my ($args) = @_;
my ( $dbh, $out ) = @$args{qw(dbh out)};
$dbh->do(q{
INSERT IGNORE INTO systempreferences (`variable`,`value`,`explanation`,`options`,`type`)
VALUES ('DefaultPatronSearchMethod','starts_with','Allows staff to set a default method when searching for patrons with autocomplete','starts_with|contains','Choice');
});
say $out "Added new system preference 'DefaultPatronSearchMethod'";
},
};