Bug 14717: DBRev 3.21.00.023
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
This commit is contained in:
parent
69994c38a0
commit
db891d33f0
2
Koha.pm
2
Koha.pm
|
|
@ -29,7 +29,7 @@ use vars qw{ $VERSION };
|
|||
# - #4 : the developer version. The 4th number is the database subversion.
|
||||
# used by developers when the database changes. updatedatabase take care of the changes itself
|
||||
# and is automatically called by Auth.pm when needed.
|
||||
$VERSION = "3.21.00.022";
|
||||
$VERSION = "3.21.00.023";
|
||||
|
||||
sub version {
|
||||
return $VERSION;
|
||||
|
|
|
|||
|
|
@ -1,4 +0,0 @@
|
|||
update borrowers set debarred = NULL where debarred = '0000-00-00';
|
||||
update borrowers set dateexpiry = NULL where dateexpiry = '0000-00-00';
|
||||
update borrowers set dateofbirth = NULL where dateofbirth = '0000-00-00';
|
||||
update borrowers set dateenrolled = NULL where dateenrolled = '0000-00-00';
|
||||
|
|
@ -10814,6 +10814,24 @@ if ( CheckVersion($DBversion) ) {
|
|||
SetVersion($DBversion);
|
||||
}
|
||||
|
||||
$DBversion = "3.21.00.023";
|
||||
if ( CheckVersion($DBversion) ) {
|
||||
$dbh->do(q{
|
||||
UPDATE borrowers SET debarred=NULL WHERE debarred='0000-00-00'
|
||||
});
|
||||
$dbh->do(q{
|
||||
UPDATE borrowers SET dateexpiry=NULL where dateexpiry='0000-00-00'
|
||||
});
|
||||
$dbh->do(q{
|
||||
UPDATE borrowers SET dateofbirth=NULL where dateofbirth='0000-00-00'
|
||||
});
|
||||
$dbh->do(q{
|
||||
UPDATE borrowers SET dateenrolled=NULL where dateenrolled='0000-00-00'
|
||||
});
|
||||
print "Upgrade to $DBversion done (Bug 14717: Prevent 0000-00-00 dates in patron data)\n";
|
||||
SetVersion($DBversion);
|
||||
}
|
||||
|
||||
# DEVELOPER PROCESS, search for anything to execute in the db_update directory
|
||||
# SEE bug 13068
|
||||
# if there is anything in the atomicupdate, read and execute it.
|
||||
|
|
|
|||
Loading…
Reference in New Issue