Bugzilla – Attachment 167372 Details for
Bug 36986
(Bug 26176 follow-up) Fix rename StaffLoginBranchBasedOnIP in DBRev
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 36986: (QA follow-up) Catch the case where someone already upgraded
Bug-36986-QA-follow-up-Catch-the-case-where-someon.patch (text/plain), 1.57 KB, created by
Martin Renvoize (ashimema)
on 2024-06-04 10:17:37 UTC
(
hide
)
Description:
Bug 36986: (QA follow-up) Catch the case where someone already upgraded
Filename:
MIME Type:
Creator:
Martin Renvoize (ashimema)
Created:
2024-06-04 10:17:37 UTC
Size:
1.57 KB
patch
obsolete
>From a03a85893f15276f71ac16963a02fe08d5389c77 Mon Sep 17 00:00:00 2001 >From: Martin Renvoize <martin.renvoize@ptfs-europe.com> >Date: Tue, 4 Jun 2024 11:15:59 +0100 >Subject: [PATCH] Bug 36986: (QA follow-up) Catch the case where someone > already upgraded > >This adds a corresponding atomic update for the case where someone may >have already upgraded past the version we're correcting in the prior >patch. > >Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> >--- > .../data/mysql/atomicupdate/bug_36986.pl | 23 +++++++++++++++++++ > 1 file changed, 23 insertions(+) > create mode 100644 installer/data/mysql/atomicupdate/bug_36986.pl > >diff --git a/installer/data/mysql/atomicupdate/bug_36986.pl b/installer/data/mysql/atomicupdate/bug_36986.pl >new file mode 100644 >index 00000000000..1c9d611d209 >--- /dev/null >+++ b/installer/data/mysql/atomicupdate/bug_36986.pl >@@ -0,0 +1,23 @@ >+use Modern::Perl; >+use Koha::Installer::Output qw(say_warning say_failure say_success say_info); >+ >+return { >+ bug_number => "36986", >+ description => "Rename StaffLoginLibraryBasedOnIP system preference", >+ up => sub { >+ my ($args) = @_; >+ my ( $dbh, $out ) = @$args{qw(dbh out)}; >+ >+ $dbh->do( >+ q{ >+ UPDATE systempreferences SET variable = "StaffLoginLibraryBasedOnIP" >+ WHERE variable = "StaffLoginBranchBasedOnIP" >+ } >+ ) == 1 >+ && say_success( >+ $out, >+ "Renamed system preference 'StaffLoginBranchBasedOnIP' to 'StaffLoginLibraryBasedOnIP'" >+ ); >+ >+ }, >+}; >-- >2.45.1
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 36986
:
167247
|
167253
|
167286
|
167371
| 167372