DBRev for Bug 15517 - Tables borrowers and deletedborrowers differ again

This commit is contained in:
Brendan Gallagher 2016-02-23 23:13:08 +00:00
parent 100d800060
commit e061b2b65c
3 changed files with 13 additions and 3 deletions

View file

@ -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.23.00.023";
$VERSION = "3.23.00.024";
sub version {
return $VERSION;

View file

@ -1,2 +0,0 @@
ALTER TABLE deletedborrowers MODIFY COLUMN userid VARCHAR(75) DEFAULT NULL;
ALTER TABLE deletedborrowers MODIFY COLUMN password VARCHAR(60) DEFAULT NULL;

View file

@ -11795,6 +11795,18 @@ VALUES('OpenLibrarySearch','0','If Yes Open Library search results will show in
print "Upgrade to $DBversion done (Bug 6624 - Allow Koha to use the new read API from OpenLibrary)\n";
SetVersion($DBversion);
}
$DBversion = "3.23.00.024";
if ( CheckVersion($DBversion) ) {
$dbh->do(q{
ALTER TABLE deletedborrowers MODIFY COLUMN userid VARCHAR(75) DEFAULT NULL;
});
$dbh->do(q{
ALTER TABLE deletedborrowers MODIFY COLUMN password VARCHAR(60) DEFAULT NULL;
});
print "Upgrade to $DBversion done (Bug 15517 - Tables borrowers and deletedborrowers differ again)\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.