From c4ff0eac6039c15ef16ced9f7523b931c674ecac Mon Sep 17 00:00:00 2001 From: Nick Clemens Date: Mon, 5 Nov 2018 13:21:11 +0000 Subject: [PATCH] Bug 8630: DBRev 18.06.00.051 Signed-off-by: Nick Clemens --- Koha.pm | 2 +- .../bug_8630-add_adlibris_cover_image_syspref.sql | 3 --- installer/data/mysql/updatedatabase.pl | 11 +++++++++++ 3 files changed, 12 insertions(+), 4 deletions(-) delete mode 100644 installer/data/mysql/atomicupdate/bug_8630-add_adlibris_cover_image_syspref.sql diff --git a/Koha.pm b/Koha.pm index 2ff8513b78..ae5c664910 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.06.00.050"; +$VERSION = "18.06.00.051"; sub version { return $VERSION; diff --git a/installer/data/mysql/atomicupdate/bug_8630-add_adlibris_cover_image_syspref.sql b/installer/data/mysql/atomicupdate/bug_8630-add_adlibris_cover_image_syspref.sql deleted file mode 100644 index 36107cd52a..0000000000 --- a/installer/data/mysql/atomicupdate/bug_8630-add_adlibris_cover_image_syspref.sql +++ /dev/null @@ -1,3 +0,0 @@ -INSERT IGNORE INTO `systempreferences` (`variable`, `value`, `options`, `explanation`, `type`) VALUES -('AdlibrisCoversEnabled', '0', NULL, 'Display cover images in OPAC results and detail listing from Swedish retailer Adlibris.','YesNo'), -('AdlibrisCoversURL', 'http://www.adlibris.com/se/organisationer/showimagesafe.aspx', NULL, 'Base URL for Adlibris cover image web service.', 'Free'); diff --git a/installer/data/mysql/updatedatabase.pl b/installer/data/mysql/updatedatabase.pl index a537a155b5..d1082c3582 100755 --- a/installer/data/mysql/updatedatabase.pl +++ b/installer/data/mysql/updatedatabase.pl @@ -16775,6 +16775,17 @@ if( CheckVersion( $DBversion ) ) { SetVersion( $DBversion ); } +$DBversion = '18.06.00.051'; +if( CheckVersion( $DBversion ) ) { + $dbh->do(q{ + INSERT IGNORE INTO `systempreferences` (`variable`, `value`, `options`, `explanation`, `type`) VALUES + ('AdlibrisCoversEnabled', '0', NULL, 'Display cover images in OPAC results and detail listing from Swedish retailer Adlibris.','YesNo'), + ('AdlibrisCoversURL', 'http://www.adlibris.com/se/organisationer/showimagesafe.aspx', NULL, 'Base URL for Adlibris cover image web service.', 'Free'); + }); + print "Upgrade to $DBversion done (Bug 8630 - Add covers from AdLibris to the OPAC and Intranet)\n"; + SetVersion( $DBversion ); +} + # SEE bug 13068 # if there is anything in the atomicupdate, read and execute it. -- 2.39.5