From 4f9e12073761135b5abd2f4fba1067297251d462 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Mon, 9 Nov 2020 14:31:04 +0100 Subject: [PATCH] Bug 19133: Fix atomic updates --- .../Bug-19133-2_Add_permission_get_password_reset_uuid.perl | 2 +- .../Bug-19133-Password-recovery-custom-link-allowed-hosts.perl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/installer/data/mysql/atomicupdate/Bug-19133-2_Add_permission_get_password_reset_uuid.perl b/installer/data/mysql/atomicupdate/Bug-19133-2_Add_permission_get_password_reset_uuid.perl index 5754d9d9c1..121032fd58 100644 --- a/installer/data/mysql/atomicupdate/Bug-19133-2_Add_permission_get_password_reset_uuid.perl +++ b/installer/data/mysql/atomicupdate/Bug-19133-2_Add_permission_get_password_reset_uuid.perl @@ -2,7 +2,7 @@ $DBversion = 'XXX'; # will be replaced by the RM if( CheckVersion( $DBversion ) ) { $dbh->do(q{ - INSERT INTO permissions + INSERT IGNORE INTO permissions (module_bit, code, description) VALUES ( 4, 'get_password_reset_uuid', 'Allow the user to get password reset uuid when recovering passwords. Useful for third party service integrations that wish to do something with the uuid, such as handle emails themselves instead of Koha.'); diff --git a/installer/data/mysql/atomicupdate/Bug-19133-Password-recovery-custom-link-allowed-hosts.perl b/installer/data/mysql/atomicupdate/Bug-19133-Password-recovery-custom-link-allowed-hosts.perl index 24be48a37d..acca6e6788 100644 --- a/installer/data/mysql/atomicupdate/Bug-19133-Password-recovery-custom-link-allowed-hosts.perl +++ b/installer/data/mysql/atomicupdate/Bug-19133-Password-recovery-custom-link-allowed-hosts.perl @@ -2,7 +2,7 @@ $DBversion = 'XXX'; # will be replaced by the RM if( CheckVersion( $DBversion ) ) { $dbh->do(q{ - INSERT INTO systempreferences + INSERT IGNORE INTO systempreferences (variable, value, options, explanation, type) VALUES ('OpacResetPasswordAllowedHosts', '', '', 'Allowed external host names for password reset in third party service. Separate list by whitespace, comma or |', 'free'); -- 2.20.1