Bugzilla – Attachment 130675 Details for
Bug 29887
Create system preference IndependentBranchesLoggedInLibrary
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 29887: database update
Bug-29887-database-update.patch (text/plain), 1.55 KB, created by
Andrew Fuerste-Henry
on 2022-02-16 17:16:04 UTC
(
hide
)
Description:
Bug 29887: database update
Filename:
MIME Type:
Creator:
Andrew Fuerste-Henry
Created:
2022-02-16 17:16:04 UTC
Size:
1.55 KB
patch
obsolete
>From 232df76c668f212c92e22ee02513348c7d9466d2 Mon Sep 17 00:00:00 2001 >From: Lucas Gass <lucas@bywatersolutions.com> >Date: Fri, 14 Jan 2022 22:34:01 +0000 >Subject: [PATCH] Bug 29887: database update > >Signed-off-by: Bob Bennhoff <bbennhoff@clicweb.org> >--- > ...ependentbranchesloggedinlibrary-sys-pref.pl | 18 ++++++++++++++++++ > 1 file changed, 18 insertions(+) > create mode 100644 installer/data/mysql/atomicupdate/bug_29887-add-independentbranchesloggedinlibrary-sys-pref.pl > >diff --git a/installer/data/mysql/atomicupdate/bug_29887-add-independentbranchesloggedinlibrary-sys-pref.pl b/installer/data/mysql/atomicupdate/bug_29887-add-independentbranchesloggedinlibrary-sys-pref.pl >new file mode 100644 >index 0000000000..a79fcea66c >--- /dev/null >+++ b/installer/data/mysql/atomicupdate/bug_29887-add-independentbranchesloggedinlibrary-sys-pref.pl >@@ -0,0 +1,18 @@ >+use Modern::Perl; >+ >+return { >+ bug_number => "29887", >+ description => "Add system preference IndependentBranchesLoggedInLibrary", >+ up => sub { >+ my ($args) = @_; >+ my ($dbh, $out) = @$args{qw(dbh out)}; >+ # Do you stuffs here >+ $dbh->do(q{ >+ INSERT IGNORE INTO systempreferences ( `variable`, `value`, `options`, `explanation`, `type` ) >+ SELECT 'IndependentBranchesLoggedInLibrary', value, NULL, 'Prevent non-superlibrarians from switching logged in locations','YesNo' >+ FROM systempreferences WHERE variable = 'IndependentBranches' >+ }); >+ # Print useful stuff here >+ say $out "Bug 29887 database update finished"; >+ }, >+} >-- >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 29887
:
129517
|
129518
|
130452
|
130674
|
130675
|
130676
|
131380
|
132353
|
132354
|
132355
|
132356