From 2efad4356ce347ef36e92b66a21bb3322db4d178 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Thu, 22 Apr 2021 09:09:13 +0000 Subject: [PATCH] Bug 23207: DBRev 20.12.00.035 Signed-off-by: Jonathan Druart --- Koha.pm | 2 +- installer/data/mysql/atomicupdate/bug_23027.perl | 12 ------------ installer/data/mysql/updatedatabase.pl | 12 ++++++++++++ 3 files changed, 13 insertions(+), 13 deletions(-) delete mode 100644 installer/data/mysql/atomicupdate/bug_23027.perl diff --git a/Koha.pm b/Koha.pm index 34792aa03c..023a7b3cdb 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 = "20.12.00.034"; +$VERSION = "20.12.00.035"; sub version { return $VERSION; diff --git a/installer/data/mysql/atomicupdate/bug_23027.perl b/installer/data/mysql/atomicupdate/bug_23027.perl deleted file mode 100644 index 4494ae6850..0000000000 --- a/installer/data/mysql/atomicupdate/bug_23027.perl +++ /dev/null @@ -1,12 +0,0 @@ -$DBversion = 'XXX'; # will be replaced by the RM -if( CheckVersion( $DBversion ) ) { - if( !column_exists( 'itemtypes', 'automatic_checkin' ) ) { - $dbh->do(q{ - ALTER TABLE itemtypes - ADD COLUMN `automatic_checkin` tinyint(1) NOT NULL DEFAULT 0 COMMENT 'If automatic checkin is enabled for items of this type' AFTER `searchcategory` - }); - } - - # Always end with this (adjust the bug info) - NewVersion( $DBversion, 23027, "Add automatic_checkin to itemtypes table"); -} diff --git a/installer/data/mysql/updatedatabase.pl b/installer/data/mysql/updatedatabase.pl index 3596b23517..d7dbbc07fa 100755 --- a/installer/data/mysql/updatedatabase.pl +++ b/installer/data/mysql/updatedatabase.pl @@ -23862,6 +23862,18 @@ if( CheckVersion( $DBversion ) ) { NewVersion( $DBversion, 20854, "Add new system preference casServerVersion"); } +$DBversion = '20.12.00.035'; +if( CheckVersion( $DBversion ) ) { + if( !column_exists( 'itemtypes', 'automatic_checkin' ) ) { + $dbh->do(q{ + ALTER TABLE itemtypes + ADD COLUMN `automatic_checkin` tinyint(1) NOT NULL DEFAULT 0 COMMENT 'If automatic checkin is enabled for items of this type' AFTER `searchcategory` + }); + } + + NewVersion( $DBversion, 23207, "Add automatic_checkin to itemtypes table"); +} + # 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/'; -- 2.39.5