From da29bf48db6a5e5c383174962c7b81e6ea5bd5d4 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Wed, 21 Apr 2021 08:48:26 +0000 Subject: [PATCH] Bug 20854: DBRev 20.12.00.034 Signed-off-by: Jonathan Druart --- Koha.pm | 2 +- installer/data/mysql/atomicupdate/Bug_20854.perl | 8 -------- installer/data/mysql/updatedatabase.pl | 11 +++++++++++ 3 files changed, 12 insertions(+), 9 deletions(-) delete mode 100644 installer/data/mysql/atomicupdate/Bug_20854.perl diff --git a/Koha.pm b/Koha.pm index 231f2b68a5..34792aa03c 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.033"; +$VERSION = "20.12.00.034"; sub version { return $VERSION; diff --git a/installer/data/mysql/atomicupdate/Bug_20854.perl b/installer/data/mysql/atomicupdate/Bug_20854.perl deleted file mode 100644 index 89b33d2bc1..0000000000 --- a/installer/data/mysql/atomicupdate/Bug_20854.perl +++ /dev/null @@ -1,8 +0,0 @@ -$DBversion = 'XXX'; # will be replaced by the RM -if( CheckVersion( $DBversion ) ) { - - $dbh->do( "INSERT IGNORE INTO systempreferences (variable, value, options, explanation, type) VALUES ('casServerVersion', '2', '2|3', 'Version of the CAS server Koha will connect to.', 'Choice');"); - - # Always end with this (adjust the bug info) - NewVersion( $DBversion, 20854, "Adds a casServerVersion system preference"); -} diff --git a/installer/data/mysql/updatedatabase.pl b/installer/data/mysql/updatedatabase.pl index ffbe0bb100..3596b23517 100755 --- a/installer/data/mysql/updatedatabase.pl +++ b/installer/data/mysql/updatedatabase.pl @@ -23851,6 +23851,17 @@ if( CheckVersion( $DBversion ) ) { NewVersion( $DBversion, 26940, "Put in sync borrowers.debarredcomment with comments from borrower_debarments"); } +$DBversion = '20.12.00.034'; +if( CheckVersion( $DBversion ) ) { + + $dbh->do(q{ + INSERT IGNORE INTO systempreferences (variable, value, options, explanation, type) + VALUES ('casServerVersion', '2', '2|3', 'Version of the CAS server Koha will connect to.', 'Choice'); + }); + + NewVersion( $DBversion, 20854, "Add new system preference casServerVersion"); +} + # 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