Bugzilla – Attachment 186948 Details for
Bug 23260
Anonymize (remove) patron data from items_last_borrower
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 23260: Alter created_on column to not update to current timestamp ON UPDATE
Bug-23260-Alter-createdon-column-to-not-update-to-.patch (text/plain), 1.59 KB, created by
Lucas Gass (lukeg)
on 2025-09-25 21:25:23 UTC
(
hide
)
Description:
Bug 23260: Alter created_on column to not update to current timestamp ON UPDATE
Filename:
MIME Type:
Creator:
Lucas Gass (lukeg)
Created:
2025-09-25 21:25:23 UTC
Size:
1.59 KB
patch
obsolete
>From eda9cbe890b5636ea471a3a1d0d3db4bfddbcd75 Mon Sep 17 00:00:00 2001 >From: Lucas Gass <lucas@bywatersolutions.com> >Date: Thu, 25 Sep 2025 21:24:37 +0000 >Subject: [PATCH] Bug 23260: Alter created_on column to not update to current > timestamp ON UPDATE > >--- > installer/data/mysql/atomicupdate/bug_23260.pl | 10 +++++++++- > 1 file changed, 9 insertions(+), 1 deletion(-) > >diff --git a/installer/data/mysql/atomicupdate/bug_23260.pl b/installer/data/mysql/atomicupdate/bug_23260.pl >index a59abb272e0..3626a9ae935 100644 >--- a/installer/data/mysql/atomicupdate/bug_23260.pl >+++ b/installer/data/mysql/atomicupdate/bug_23260.pl >@@ -4,11 +4,19 @@ use Koha::Installer::Output qw(say_warning say_success say_info); > return { > bug_number => "23260", > description => >- "Make borrowernumber from items_last_borrower nullable, and add AnonymizeLastBorrower and AnonymizeLastBorrowerDays preferences", >+ "Make created_on from items_last_borrower not update to current timestamp ON UPDATE, and add AnonymizeLastBorrower and AnonymizeLastBorrowerDays preferences", > up => sub { > my ($args) = @_; > my ( $dbh, $out ) = @$args{qw(dbh out)}; > >+ $dbh->do( >+ q{ >+ ALTER TABLE items_last_borrower >+ MODIFY created_on timestamp NOT NULL DEFAULT current_timestamp() >+ } >+ ); >+ say_success( $out, "Fixed items_last_borrower.created_on column to prevent automatic timestamp updates" ); >+ > $dbh->do( > q{ > INSERT IGNORE INTO systempreferences ( `variable`, `value`, `options`, `explanation`, `type` ) VALUES >-- >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 23260
:
92863
|
92864
|
93052
|
94858
|
94859
|
95033
|
95457
|
95458
|
95459
|
95460
|
95651
|
95698
|
95699
|
95700
|
95701
|
95769
|
95770
|
95771
|
95772
|
96791
|
97841
|
97842
|
98044
|
98053
|
98054
|
98064
|
98282
|
98349
|
98352
|
112734
|
112735
|
112736
|
112737
|
112738
|
112739
|
112740
|
112741
|
112742
|
112743
|
117974
|
117975
|
117976
|
117977
|
117978
|
117979
|
117980
|
117981
|
117982
|
117983
|
120522
|
120523
|
120524
|
120525
|
120526
|
120527
|
120528
|
120529
|
120530
|
120531
|
122963
|
122964
|
122965
|
122966
|
122967
|
122968
|
122969
|
122970
|
122971
|
122972
|
145175
|
145176
|
145177
|
145178
|
145179
|
145180
|
145181
|
145182
|
145183
|
145184
|
157106
|
157107
|
157108
|
157109
|
157110
|
157111
|
157112
|
157113
|
157114
|
157115
|
157116
|
159291
|
159292
|
159293
|
159294
|
159298
|
159299
|
159300
|
159301
|
164129
|
164130
|
164131
|
164132
|
164133
|
182000
|
182001
|
182002
|
182003
|
182004
|
182005
|
182006
|
182007
|
182927
|
182930
|
186835
|
186836
|
186837
|
186838
|
186839
|
186840
|
186843
|
186902
|
186942
|
186943
| 186948