https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=37000 --- Comment #1 from Martin Renvoize <martin.renvoize@ptfs-europe.com> --- Created attachment 167376 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=167376&action=edit Bug 37000: [Bug 36120 follow-up] Improve reliability of database update This patch adds a series of fallthroughs to ensure pickup_library_id is always set prior to adding the NOT NULL constraint. We initially only looked at items.homebranch but as that's a nullable field itself, we now look at items.holdingbranch before finally defaulting to the first available branch in the branches table in the worst case. -- You are receiving this mail because: You are watching all bug changes. You are the assignee for the bug.