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>
Signed-off-by: David Nind <david@davidnind.com>

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Laura Escamilla <laura.escamilla@bywatersolutions.com>
This commit is contained in:
Hammat Wele 2024-03-29 22:14:08 +00:00 committed by Laura Escamilla
parent ed11deb1a6
commit 0a8c308b2c
No known key found for this signature in database
GPG Key ID: 6B1D9CA1AF817BC3
1 changed files with 18 additions and 0 deletions

View File

@ -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";
},
};