Browse Source

Bug 19804: DBRev 17.12.00.026

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
18.05.x
Jonathan Druart 6 years ago
parent
commit
fe4846d001
  1. 2
      Koha.pm
  2. 12
      installer/data/mysql/atomicupdate/bug_19804.perl
  3. 12
      installer/data/mysql/updatedatabase.pl

2
Koha.pm

@ -29,7 +29,7 @@ use vars qw{ $VERSION };
# - #4 : the developer version. The 4th number is the database subversion. # - #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 # used by developers when the database changes. updatedatabase take care of the changes itself
# and is automatically called by Auth.pm when needed. # and is automatically called by Auth.pm when needed.
$VERSION = "17.12.00.025"; $VERSION = "17.12.00.026";
sub version { sub version {
return $VERSION; return $VERSION;

12
installer/data/mysql/atomicupdate/bug_19804.perl

@ -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";
}

12
installer/data/mysql/updatedatabase.pl

@ -15723,6 +15723,18 @@ if( CheckVersion( $DBversion ) ) {
print "Upgrade to $DBversion done (Bug 20291 - Add StaffLoginInstructions system preference and rename NoLoginInstructions with OpacLoginInstructions)\n"; 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 # SEE bug 13068
# if there is anything in the atomicupdate, read and execute it. # if there is anything in the atomicupdate, read and execute it.

Loading…
Cancel
Save