From d6d0c4b7921a80ff62336efcd8ca01bf562c0f02 Mon Sep 17 00:00:00 2001 From: Martin Renvoize Date: Mon, 6 Apr 2020 11:11:12 +0100 Subject: [PATCH] Bug 23173: DBRev 19.12.00.065 Signed-off-by: Martin Renvoize --- Koha.pm | 2 +- .../bug_23173_add_ILLCheckAvailability_syspref.perl | 9 --------- installer/data/mysql/updatedatabase.pl | 11 +++++++++++ 3 files changed, 12 insertions(+), 10 deletions(-) delete mode 100644 installer/data/mysql/atomicupdate/bug_23173_add_ILLCheckAvailability_syspref.perl diff --git a/Koha.pm b/Koha.pm index 62e32d031f..49df31750c 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 = "19.12.00.064"; +$VERSION = "19.12.00.065"; sub version { return $VERSION; diff --git a/installer/data/mysql/atomicupdate/bug_23173_add_ILLCheckAvailability_syspref.perl b/installer/data/mysql/atomicupdate/bug_23173_add_ILLCheckAvailability_syspref.perl deleted file mode 100644 index a20ebfa52e..0000000000 --- a/installer/data/mysql/atomicupdate/bug_23173_add_ILLCheckAvailability_syspref.perl +++ /dev/null @@ -1,9 +0,0 @@ -$DBversion = 'XXX'; # will be replaced by the RM -if( CheckVersion( $DBversion ) ) { - # you can use $dbh here like: - # $dbh->do( q| INSERT IGNORE INTO systempreferences (variable, value, explanation, options, type) VALUES ('ILLCheckAvailability', '0', 'If enabled, during the ILL request process third party sources will be checked for current availability', '', 'YesNo'); | ); - - # Always end with this (adjust the bug info) - SetVersion( $DBversion ); - print "Upgrade to $DBversion done (Bug 23173 - Add ILLCheckAvailability syspref)\n"; -} diff --git a/installer/data/mysql/updatedatabase.pl b/installer/data/mysql/updatedatabase.pl index 8619b8eed3..4cf630f3bb 100755 --- a/installer/data/mysql/updatedatabase.pl +++ b/installer/data/mysql/updatedatabase.pl @@ -21453,6 +21453,17 @@ if( CheckVersion( $DBversion ) ) { NewVersion( $DBversion, 4944, "Add new system preference OpacNoItemTypeImages"); } +$DBversion = '19.12.00.065'; +if( CheckVersion( $DBversion ) ) { + + $dbh->do( q| + INSERT IGNORE INTO systempreferences (variable, value, explanation, options, type) + VALUES ('ILLCheckAvailability', '0', 'If enabled, during the ILL request process third party sources will be checked for current availability', '', 'YesNo') + | ); + + NewVersion( $DBversion, 23173, "Add ILLCheckAvailability syspref"); +} + # 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