From 1f2685f7d4965d6aa4a25be81aebf91b1ed01b33 Mon Sep 17 00:00:00 2001 From: Nick Clemens Date: Thu, 7 Mar 2019 20:52:59 +0000 Subject: [PATCH] Bug 20639: DBRev 18.12.00.023 Signed-off-by: Nick Clemens --- Koha.pm | 2 +- .../bug_20639-add_ILLOpacbackends_syspref.perl | 11 ----------- installer/data/mysql/updatedatabase.pl | 12 ++++++++++++ 3 files changed, 13 insertions(+), 12 deletions(-) delete mode 100644 installer/data/mysql/atomicupdate/bug_20639-add_ILLOpacbackends_syspref.perl diff --git a/Koha.pm b/Koha.pm index e26aab8654..c346b3bfd2 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 = "18.12.00.022"; +$VERSION = "18.12.00.023"; sub version { return $VERSION; diff --git a/installer/data/mysql/atomicupdate/bug_20639-add_ILLOpacbackends_syspref.perl b/installer/data/mysql/atomicupdate/bug_20639-add_ILLOpacbackends_syspref.perl deleted file mode 100644 index d74b368533..0000000000 --- a/installer/data/mysql/atomicupdate/bug_20639-add_ILLOpacbackends_syspref.perl +++ /dev/null @@ -1,11 +0,0 @@ -$DBversion = 'XXX'; # will be replaced by the RM -if( CheckVersion( $DBversion ) ) { - $dbh->do(q| - INSERT IGNORE INTO systempreferences (variable,value,explanation,options,type) - VALUES ('ILLOpacbackends',NULL,NULL,'ILL backends to enabled for OPAC initiated requests','multiple'); - |); - - # Always end with this (adjust the bug info) - SetVersion( $DBversion ); - print "Upgrade to $DBversion done (Bug 20639 - Add ILLOpacbackends syspref)\n"; -} diff --git a/installer/data/mysql/updatedatabase.pl b/installer/data/mysql/updatedatabase.pl index 74439d6207..f824fba5cb 100755 --- a/installer/data/mysql/updatedatabase.pl +++ b/installer/data/mysql/updatedatabase.pl @@ -17597,6 +17597,18 @@ if( CheckVersion( $DBversion ) ) { print "Upgrade to $DBversion done (Bug 15774 - Add permission for managing additional fields)\n"; } +$DBversion = '18.12.00.023'; +if( CheckVersion( $DBversion ) ) { + $dbh->do(q| + INSERT IGNORE INTO systempreferences (variable,value,explanation,options,type) + VALUES ('ILLOpacbackends',NULL,NULL,'ILL backends to enabled for OPAC initiated requests','multiple'); + |); + + # Always end with this (adjust the bug info) + SetVersion( $DBversion ); + print "Upgrade to $DBversion done (Bug 20639 - Add ILLOpacbackends syspref)\n"; +} + # SEE bug 13068 # if there is anything in the atomicupdate, read and execute it. -- 2.39.5