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:
parent
ed11deb1a6
commit
0a8c308b2c
|
|
@ -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