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>
(cherry picked from commit caa46019d0)
Signed-off-by: Pedro Amorim <pedro.amorim@ptfs-europe.com>
This commit is contained in:
Tomás Cohen Arazi 2023-08-07 15:13:46 -03:00 committed by Pedro Amorim
parent 3ef1d005c1
commit b5e1b2137f

View file

@ -8,7 +8,7 @@ return {
my ( $dbh, $out ) = @$args{qw(dbh out)};
$dbh->do(q{
INSERT INTO systempreferences (`variable`,`value`,`explanation`,`options`,`type`)
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');
});