Bugzilla – Attachment 164307 Details for
Bug 36466
Incorrect date value stored when "Published on" or "Expected on" are empty
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 36466: (follow-up) Adding atomicupdate file to fix 0000-00-00 in serial table
0002-Bug-36466-follow-up-Adding-atomicupdate-file-to-fix-.patch (text/plain), 1.37 KB, created by
Emmi Takkinen
on 2024-04-03 07:20:33 UTC
(
hide
)
Description:
Bug 36466: (follow-up) Adding atomicupdate file to fix 0000-00-00 in serial table
Filename:
MIME Type:
Creator:
Emmi Takkinen
Created:
2024-04-03 07:20:33 UTC
Size:
1.37 KB
patch
obsolete
>From 200deb7a1129df6cfba6bb69bd9067ded89f3480 Mon Sep 17 00:00:00 2001 >From: Hammat Wele <hammat.wele@inlibro.com> >Date: Fri, 29 Mar 2024 22:14:08 +0000 >Subject: [PATCH 2/2] Bug 36466: (follow-up) Adding atomicupdate file to fix > 0000-00-00 in serial table > >Signed-off-by: Owen Leonard <oleonard@myacpl.org> >Signed-off-by: Emmi Takkinen <emmi.takkinen@koha-suomi.fi> >--- > installer/data/mysql/atomicupdate/bug_36466.pl | 16 ++++++++++++++++ > 1 file changed, 16 insertions(+) > create mode 100755 installer/data/mysql/atomicupdate/bug_36466.pl > >diff --git a/installer/data/mysql/atomicupdate/bug_36466.pl b/installer/data/mysql/atomicupdate/bug_36466.pl >new file mode 100755 >index 0000000000..2c1aa6b93d >--- /dev/null >+++ b/installer/data/mysql/atomicupdate/bug_36466.pl >@@ -0,0 +1,16 @@ >+use Modern::Perl; >+ >+return { >+ bug_number => "36466", >+ description => "Fix the incorrect 0000-00-00 date in planneddate and publisheddate field", >+ up => sub { >+ my ($args) = @_; >+ my ($dbh, $out) = @$args{qw(dbh out)}; >+ # Do you stuffs here >+ $dbh->do(q{update serial set planneddate=null where planneddate='0000-00-00';}); >+ $dbh->do(q{update serial set publisheddate=null where publisheddate='0000-00-00';}); >+ # Print useful stuff here >+ # sysprefs >+ say $out "incorrect date inplanneddate and publisheddate fixed"; >+ }, >+}; >-- >2.34.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 36466
:
164153
|
164155
|
164156
|
164254
|
164255
|
164306
|
164307
|
166601
|
166602