https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=34276 --- Comment #18 from Jonathan Druart <jonathan.druart+koha@gmail.com> --- (In reply to Pedro Amorim from comment #15)
(In reply to Jonathan Druart from comment #14)
Tomas, Pedro, can you take care of this one please?
I'd love to, but I'm not sure where to go from here! I'm unable to reproduce this no matter what. The atomicupdate looks idempotent enough to me, even if we do follow-up your suggestion JD, "we should add a separate check for the key (one for the FK, one for the key)." how do we make sure this has indeed fixed the issue?
We need to test the different situations. I would do: if FK or key does not exist: if key exists: drop key if fk exists: drop fk create fk -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes.