From 57333cda12111dd9582eabaa06069eda2dd154f5 Mon Sep 17 00:00:00 2001 From: Martin Renvoize Date: Mon, 6 Apr 2020 10:56:04 +0100 Subject: [PATCH] Bug 4944: DBRev 19.12.00.064 Signed-off-by: Martin Renvoize --- Koha.pm | 2 +- .../bug_4944_OpacNoItemTypeImages.perl | 14 -------------- installer/data/mysql/updatedatabase.pl | 14 ++++++++++++++ 3 files changed, 15 insertions(+), 15 deletions(-) delete mode 100644 installer/data/mysql/atomicupdate/bug_4944_OpacNoItemTypeImages.perl diff --git a/Koha.pm b/Koha.pm index e43bf77c13..62e32d031f 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.063"; +$VERSION = "19.12.00.064"; sub version { return $VERSION; diff --git a/installer/data/mysql/atomicupdate/bug_4944_OpacNoItemTypeImages.perl b/installer/data/mysql/atomicupdate/bug_4944_OpacNoItemTypeImages.perl deleted file mode 100644 index 768d72d731..0000000000 --- a/installer/data/mysql/atomicupdate/bug_4944_OpacNoItemTypeImages.perl +++ /dev/null @@ -1,14 +0,0 @@ -$DBversion = 'XXX'; # will be replaced by the RM -if( CheckVersion( $DBversion ) ) { - - $dbh->do( q| - INSERT IGNORE INTO systempreferences ( `variable`, `value`, `options`, `explanation`, `type` ) - SELECT 'OpacNoItemTypeImages', value, NULL, 'If ON, disables itemtype images in the OPAC','YesNo' - FROM (SELECT value FROM systempreferences WHERE variable="NoItemTypeImages") tmp - | ); - $dbh->do( "UPDATE systempreferences SET explanation = 'If ON, disables itemtype images in the staff interface' - WHERE variable = 'noItemTypeImages' "); - - # Always end with this (adjust the bug info) - NewVersion( $DBversion, 4944, "Add new system preference OpacNoItemTypeImages"); -} diff --git a/installer/data/mysql/updatedatabase.pl b/installer/data/mysql/updatedatabase.pl index 7123d03c67..8619b8eed3 100755 --- a/installer/data/mysql/updatedatabase.pl +++ b/installer/data/mysql/updatedatabase.pl @@ -21439,6 +21439,20 @@ if( CheckVersion( $DBversion ) ) { NewVersion( $DBversion, 22534, "Add PreFillGuaranteeField syspref"); } +$DBversion = '19.12.00.064'; +if( CheckVersion( $DBversion ) ) { + + $dbh->do( q| + INSERT IGNORE INTO systempreferences ( `variable`, `value`, `options`, `explanation`, `type` ) + SELECT 'OpacNoItemTypeImages', value, NULL, 'If ON, disables itemtype images in the OPAC','YesNo' + FROM (SELECT value FROM systempreferences WHERE variable="NoItemTypeImages") tmp + | ); + $dbh->do( "UPDATE systempreferences SET explanation = 'If ON, disables itemtype images in the staff interface' + WHERE variable = 'noItemTypeImages' "); + + NewVersion( $DBversion, 4944, "Add new system preference OpacNoItemTypeImages"); +} + # 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