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: Lucas Gass <lucas@bywatersolutions.com>
(cherry picked from commit 085c27e41b)
Signed-off-by: Jacob O'Mara <Jacob.omara@openfifth.co.uk>
This commit is contained in:
parent
9c543fb471
commit
6dc82ebb74
|
|
@ -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";
|
||||
},
|
||||
};
|
||||
Loading…
Reference in New Issue