Bugzilla – Attachment 182032 Details for
Bug 39452
Log cardnumber changes as distinct action within borrower logs
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 39452: (follow-up) Use INSERT IGNORE for system preference
Bug-39452-follow-up-Use-INSERT-IGNORE-for-system-p.patch (text/plain), 1.37 KB, created by
Nick Clemens (kidclamp)
on 2025-05-07 14:46:08 UTC
(
hide
)
Description:
Bug 39452: (follow-up) Use INSERT IGNORE for system preference
Filename:
MIME Type:
Creator:
Nick Clemens (kidclamp)
Created:
2025-05-07 14:46:08 UTC
Size:
1.37 KB
patch
obsolete
>From b09be99317f69234d5fd27a3d7574cafeb6279d5 Mon Sep 17 00:00:00 2001 >From: Nick Clemens <nick@bywatersolutions.com> >Date: Wed, 7 May 2025 14:45:23 +0000 >Subject: [PATCH] Bug 39452: (follow-up) Use INSERT IGNORE for system > preference > >--- > .../bug_39452_add_cardnumberlog.pl | 21 +++++++++++++++++++ > 1 file changed, 21 insertions(+) > create mode 100755 installer/data/mysql/atomicupdate/bug_39452_add_cardnumberlog.pl > >diff --git a/installer/data/mysql/atomicupdate/bug_39452_add_cardnumberlog.pl b/installer/data/mysql/atomicupdate/bug_39452_add_cardnumberlog.pl >new file mode 100755 >index 00000000000..6f82ef4ce2e >--- /dev/null >+++ b/installer/data/mysql/atomicupdate/bug_39452_add_cardnumberlog.pl >@@ -0,0 +1,21 @@ >+use Modern::Perl; >+use Koha::Installer::Output qw(say_warning say_success say_info); >+ >+return { >+ bug_number => "39452", >+ description => "Add CardnumberLog Preference", >+ 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` ) VALUES >+ ('CardnumberLog','1',NULL,'If ON, log edit actions on patron cardnumbers','YesNo') >+ } >+ ); >+ >+ say $out "Added new system preference 'CardnumberLog'"; >+ }, >+}; >-- >2.39.5
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 39452
:
179703
|
179904
|
182031
|
182032
|
182075
|
182076