Bug 19804: DBRev 17.12.00.026

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
This commit is contained in:
Jonathan Druart 2018-04-09 16:14:23 -03:00
parent a73aa7c232
commit fe4846d001
3 changed files with 13 additions and 13 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 = "17.12.00.025";
$VERSION = "17.12.00.026";
sub version {
return $VERSION;

View File

@ -1,12 +0,0 @@
$DBversion = 'XXX';
if( CheckVersion( $DBversion ) ) {
if( !column_exists( 'issuingrules', 'suspension_chargeperiod' ) ) {
$dbh->do(q|
ALTER TABLE issuingrules ADD COLUMN suspension_chargeperiod int(11) DEFAULT '1' AFTER maxsuspensiondays;
|);
}
SetVersion( $DBversion );
print "Upgrade to $DBversion done (Bug 19804: Add issuingrules.suspension_chargeperiod)\n";
}

View File

@ -15723,6 +15723,18 @@ if( CheckVersion( $DBversion ) ) {
print "Upgrade to $DBversion done (Bug 20291 - Add StaffLoginInstructions system preference and rename NoLoginInstructions with OpacLoginInstructions)\n";
}
$DBversion = '17.12.00.026';
if( CheckVersion( $DBversion ) ) {
if( !column_exists( 'issuingrules', 'suspension_chargeperiod' ) ) {
$dbh->do(q|
ALTER TABLE issuingrules ADD COLUMN suspension_chargeperiod int(11) DEFAULT '1' AFTER maxsuspensiondays;
|);
}
SetVersion( $DBversion );
print "Upgrade to $DBversion done (Bug 19804: Add issuingrules.suspension_chargeperiod)\n";
}
# SEE bug 13068
# if there is anything in the atomicupdate, read and execute it.