Bugzilla – Attachment 166602 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
Bug-36466-follow-up-Adding-atomicupdate-file-to-fi.patch (text/plain), 1.46 KB, created by
Nick Clemens (kidclamp)
on 2024-05-10 18:49:06 UTC
(
hide
)
Description:
Bug 36466: (follow-up) Adding atomicupdate file to fix 0000-00-00 in serial table
Filename:
MIME Type:
Creator:
Nick Clemens (kidclamp)
Created:
2024-05-10 18:49:06 UTC
Size:
1.46 KB
patch
obsolete
>From 16cad569c8275b0f7b32a587b0143f5533121796 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] Bug 36466: (follow-up) Adding atomicupdate file to fix > 0000-00-00 in serial table > >WNC amended patch - tidied > >Signed-off-by: Owen Leonard <oleonard@myacpl.org> >Signed-off-by: Emmi Takkinen <emmi.takkinen@koha-suomi.fi> >Signed-off-by: Nick Clemens <nick@bywatersolutions.com> >--- > installer/data/mysql/atomicupdate/bug_36466.pl | 18 ++++++++++++++++++ > 1 file changed, 18 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 00000000000..68671054eea >--- /dev/null >+++ b/installer/data/mysql/atomicupdate/bug_36466.pl >@@ -0,0 +1,18 @@ >+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.39.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 36466
:
164153
|
164155
|
164156
|
164254
|
164255
|
164306
|
164307
|
166601
| 166602