Bugzilla – Attachment 148116 Details for
Bug 30624
Add a permission to control the ability to change the logged in library
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 30624: Make DB update idempotent
Bug-30624-Make-DB-update-idempotent.patch (text/plain), 1.02 KB, created by
Lucas Gass (lukeg)
on 2023-03-13 12:18:03 UTC
(
hide
)
Description:
Bug 30624: Make DB update idempotent
Filename:
MIME Type:
Creator:
Lucas Gass (lukeg)
Created:
2023-03-13 12:18:03 UTC
Size:
1.02 KB
patch
obsolete
>From 442d21ac43e87dc1fadb81f84a97e921024c527b Mon Sep 17 00:00:00 2001 >From: Lucas Gass <lucas@bywatersolutions.com> >Date: Mon, 13 Mar 2023 12:17:32 +0000 >Subject: [PATCH] Bug 30624: Make DB update idempotent > >--- > installer/data/mysql/atomicupdate/bug_30624_add_userflag.pl | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/installer/data/mysql/atomicupdate/bug_30624_add_userflag.pl b/installer/data/mysql/atomicupdate/bug_30624_add_userflag.pl >index c4b1d5c845..db13f6c7c8 100755 >--- a/installer/data/mysql/atomicupdate/bug_30624_add_userflag.pl >+++ b/installer/data/mysql/atomicupdate/bug_30624_add_userflag.pl >@@ -13,7 +13,7 @@ return { > my $IndependentBranches = C4::Context->preference('IndependentBranches'); > unless ( $IndependentBranches ) { > $dbh->do(q{ >- UPDATE borrowers SET flags = flags + (1<<29) WHERE flags & 4; >+ UPDATE borrowers SET flags = flags + (1<<29) WHERE ( flags & 4 AND !(flags & 1<<29) ) ; > }); > } > }, >-- >2.30.2
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 30624
:
136055
|
136076
|
137733
|
138377
|
138378
|
139961
|
139962
|
139963
|
141069
|
141070
|
141071
|
142269
|
142270
|
142271
|
144557
|
144559
|
144584
|
144594
|
144595
|
144596
|
145048
|
145049
|
145631
|
147509
|
147753
|
147754
|
147755
|
147756
| 148116