Bug 25184: (RM follow-up) Make DB update idempotent
authorMartin Renvoize <martin.renvoize@ptfs-europe.com>
Tue, 12 May 2020 10:13:49 +0000 (11:13 +0100)
committerMartin Renvoize <martin.renvoize@ptfs-europe.com>
Tue, 12 May 2020 10:14:20 +0000 (11:14 +0100)
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>

installer/data/mysql/updatedatabase.pl

index a062821..aa29daa 100755 (executable)
@@ -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')
     });