Bug 11175: (follow-up) make atomic update idempotent
authorPetro Vashchuk <stalkernoid@gmail.com>
Tue, 27 Apr 2021 09:50:56 +0000 (12:50 +0300)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Tue, 26 Oct 2021 14:46:02 +0000 (16:46 +0200)
commit5e34b9d6db95078489eaf21dcb575da87457b4fd
tree3971d98b9cb9768122cd7a85f69bcd5fbac018c6
parent3ffe2477cf0f5a90de21d4928fc5ed0594d8427f
Bug 11175: (follow-up) make atomic update idempotent

Atomic update tries to insert line into system preferences even if it's
already there. This patch fixes that by adding 'IGNORE' to the query,
making it idempotent.

Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Andrew Nugged <nugged@gmail.com>
Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
installer/data/mysql/atomicupdate/bug_11175.perl