Bug 24379: DBRev 19.11.08.002
Signed-off-by: Aleisha Amohia <aleishaamohia@hotmail.com>
This commit is contained in:
parent
f4899bafe3
commit
a2139daaa5
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 = "19.11.08.001";
|
||||
$VERSION = "19.11.08.002";
|
||||
|
||||
sub version {
|
||||
return $VERSION;
|
||||
|
|
|
|||
|
|
@ -1,9 +0,0 @@
|
|||
$DBversion = 'XXX';
|
||||
if( CheckVersion( $DBversion ) ) {
|
||||
$dbh->do( "UPDATE borrowers SET login_attempts=0 WHERE login_attempts IS NULL" );
|
||||
$dbh->do( "ALTER TABLE borrowers MODIFY COLUMN login_attempts int(4) NOT NULL DEFAULT 0" );
|
||||
$dbh->do( "UPDATE deletedborrowers SET login_attempts=0 WHERE login_attempts IS NULL" );
|
||||
$dbh->do( "ALTER TABLE deletedborrowers MODIFY COLUMN login_attempts int(4) NOT NULL DEFAULT 0" );
|
||||
print "Upgrade to $DBversion done (Bug 24379 - Set login_attempts NOT NULL)\n";
|
||||
SetVersion( $DBversion );
|
||||
}
|
||||
|
|
@ -20646,6 +20646,16 @@ if( CheckVersion( $DBversion ) ) {
|
|||
SetVersion( $DBversion );
|
||||
}
|
||||
|
||||
$DBversion = "19.11.08.002";
|
||||
if( CheckVersion( $DBversion ) ) {
|
||||
$dbh->do( "UPDATE borrowers SET login_attempts=0 WHERE login_attempts IS NULL" );
|
||||
$dbh->do( "ALTER TABLE borrowers MODIFY COLUMN login_attempts int(4) NOT NULL DEFAULT 0" );
|
||||
$dbh->do( "UPDATE deletedborrowers SET login_attempts=0 WHERE login_attempts IS NULL" );
|
||||
$dbh->do( "ALTER TABLE deletedborrowers MODIFY COLUMN login_attempts int(4) NOT NULL DEFAULT 0" );
|
||||
print "Upgrade to $DBversion done (Bug 24379 - Set login_attempts NOT NULL)\n";
|
||||
SetVersion( $DBversion );
|
||||
}
|
||||
|
||||
# SEE bug 13068
|
||||
# if there is anything in the atomicupdate, read and execute it.
|
||||
my $update_dir = C4::Context->config('intranetdir') . '/installer/data/mysql/atomicupdate/';
|
||||
|
|
|
|||
Loading…
Reference in New Issue