Bugzilla – Attachment 139176 Details for
Bug 30025
Split BiblioAddsAuthorities into 2 preferences
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 30025: DB update
Bug-30025-DB-update.patch (text/plain), 1.62 KB, created by
Nick Clemens (kidclamp)
on 2022-08-16 11:13:00 UTC
(
hide
)
Description:
Bug 30025: DB update
Filename:
MIME Type:
Creator:
Nick Clemens (kidclamp)
Created:
2022-08-16 11:13:00 UTC
Size:
1.62 KB
patch
obsolete
>From a69e21f50b92f1dc24322dff83d79ec5644dfb4e Mon Sep 17 00:00:00 2001 >From: Nick Clemens <nick@bywatersolutions.com> >Date: Fri, 10 Jun 2022 12:10:28 +0000 >Subject: [PATCH] Bug 30025: DB update > >--- > .../data/mysql/atomicupdate/bug_30025.pl | 21 +++++++++++++++++++ > 1 file changed, 21 insertions(+) > create mode 100755 installer/data/mysql/atomicupdate/bug_30025.pl > >diff --git a/installer/data/mysql/atomicupdate/bug_30025.pl b/installer/data/mysql/atomicupdate/bug_30025.pl >new file mode 100755 >index 0000000000..d82246f49f >--- /dev/null >+++ b/installer/data/mysql/atomicupdate/bug_30025.pl >@@ -0,0 +1,21 @@ >+use Modern::Perl; >+ >+return { >+ bug_number => "30025", >+ description => "Split and rename BiblioAddsAuthorities system preference", >+ up => sub { >+ my ($args) = @_; >+ my ($dbh, $out) = @$args{qw(dbh out)}; >+ my $biblio_adds_authorities = C4::Context->preference('BiblioAddsAuthorities'); >+ # Do you stuffs here >+ $dbh->do(q{ >+ INSERT IGNORE INTO systempreferences >+ ( `variable`, `value`, `options`, `explanation`, `type` ) VALUES >+ ('AllowManualAuthorityEditing',?,NULL,'Allow manual entry in controlled fields during cataloging.','YesNo'), >+ ('AutoLinkBiblios',?,NULL,'If enabled, link biblio to authorities on creation and edit','YesNo') >+ },undef,($biblio_adds_authorities,$biblio_adds_authorities)); >+ say $out "Added AllowManualAuthorityEditing and AutoLinkBiblios"; >+ $dbh->do(q{DELETE FROM systempreferences WHERE variable="BiblioAddsAuthorities";}); >+ say $out "BiblioAddsAuthorities removed"; >+ }, >+}; >-- >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 30025
:
135389
|
135931
|
136807
|
136808
|
137235
|
137236
|
139176
|
139177
|
139178
|
139399
|
139505
|
139506
|
139507
|
140466
|
140467
|
140468
|
140469
|
140470
|
140471