Line 0
Link Here
|
0 |
- |
1 |
use Modern::Perl; |
|
|
2 |
|
3 |
return { |
4 |
bug_number => "36466", |
5 |
description => "Fix the incorrect 0000-00-00 date in planneddate and publisheddate field", |
6 |
up => sub { |
7 |
my ($args) = @_; |
8 |
my ($dbh, $out) = @$args{qw(dbh out)}; |
9 |
# Do you stuffs here |
10 |
$dbh->do(q{update serial set planneddate=null where planneddate='0000-00-00';}); |
11 |
$dbh->do(q{update serial set publisheddate=null where publisheddate='0000-00-00';}); |
12 |
# Print useful stuff here |
13 |
# sysprefs |
14 |
say $out "incorrect date inplanneddate and publisheddate fixed"; |
15 |
}, |
16 |
}; |