From f248063ee557af6d19afc17f4801213287e76b95 Mon Sep 17 00:00:00 2001 From: Martin Renvoize Date: Tue, 12 May 2020 11:13:49 +0100 Subject: [PATCH] Bug 25184: (RM follow-up) Make DB update idempotent Signed-off-by: Martin Renvoize --- installer/data/mysql/updatedatabase.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/installer/data/mysql/updatedatabase.pl b/installer/data/mysql/updatedatabase.pl index a062821f20..aa29daa098 100755 --- a/installer/data/mysql/updatedatabase.pl +++ b/installer/data/mysql/updatedatabase.pl @@ -22050,7 +22050,7 @@ if( CheckVersion( $DBversion ) ) { $DBversion = '19.12.00.087'; if( CheckVersion( $DBversion ) ) { $dbh->do(q{ - INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, `type` ) VALUES + INSERT IGNORE INTO systempreferences ( `variable`, `value`, `options`, `explanation`, `type` ) VALUES ('TrapHoldsOnOrder','1',NULL,'If enabled, Koha will trap holds for on order items ( notforloan < 0 )','YesNo') }); -- 2.39.5