From fe4846d0017e17fefe3c134d30d4230a3864be4e Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Mon, 9 Apr 2018 16:14:23 -0300 Subject: [PATCH] Bug 19804: DBRev 17.12.00.026 Signed-off-by: Jonathan Druart --- Koha.pm | 2 +- installer/data/mysql/atomicupdate/bug_19804.perl | 12 ------------ installer/data/mysql/updatedatabase.pl | 12 ++++++++++++ 3 files changed, 13 insertions(+), 13 deletions(-) delete mode 100644 installer/data/mysql/atomicupdate/bug_19804.perl diff --git a/Koha.pm b/Koha.pm index d53c392cc8..17f584bcba 100644 --- a/Koha.pm +++ b/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 = "17.12.00.025"; +$VERSION = "17.12.00.026"; sub version { return $VERSION; diff --git a/installer/data/mysql/atomicupdate/bug_19804.perl b/installer/data/mysql/atomicupdate/bug_19804.perl deleted file mode 100644 index 76f2122988..0000000000 --- a/installer/data/mysql/atomicupdate/bug_19804.perl +++ /dev/null @@ -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"; -} diff --git a/installer/data/mysql/updatedatabase.pl b/installer/data/mysql/updatedatabase.pl index 0f014f93e2..3d1327fda6 100755 --- a/installer/data/mysql/updatedatabase.pl +++ b/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"; } +$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. -- 2.39.5