Bug 31143: (follow-up) Add description to fix_invalid_dates.pl

Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
(cherry picked from commit 769b394292)
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
This commit is contained in:
Wainui Witika-Park 2024-11-04 18:31:25 +13:00 committed by Lucas Gass
parent c90b470c3e
commit 4bb4a27fcb
1 changed files with 10 additions and 0 deletions

View File

@ -27,6 +27,16 @@ use Koha::Script -cron;
use Data::Dumper;
use Koha::Database;
=head1 NAME
fix_invalid_dates.pl - Fix invalid dates
=head1 DESCRIPTION
This script fixes any date fields in the database that have '0000-00-00' values (for example: dateofbirth) by updating them to 'NULL'.
=cut
my $verbose = 0;
my $doit = 0;