0000-00-00 can come only from a problem in the 3.06.00.001 update
SetVersion($DBversion);
}
+$DBversion = "3.06.00.002";
+if ( C4::Context->preference("Version") < TransformToNum($DBversion) ) {
+ $dbh->do("UPDATE borrowers SET debarred=NULL WHERE debarred='0000-00-00';");
+ print "Setting NULL to debarred where 0000-00-00 is stored (bug 7272)";
+ SetVersion($DBversion);
+}
+
=head1 FUNCTIONS
use strict;
sub kohaversion {
- our $VERSION = '3.06.00.001';
+ our $VERSION = '3.06.00.002';
# version needs to be set this way
# so that it can be picked up by Makefile.PL
# during install