From fc6b7e5c3e101e0c5935f34c45b72cf3fd4f1bb7 Mon Sep 17 00:00:00 2001 From: Nick Clemens Date: Tue, 16 Apr 2019 13:14:17 +0000 Subject: [PATCH] Bug 14457: DBRev 18.12.00.047 Signed-off-by: Nick Clemens --- Koha.pm | 2 +- .../atomicupdate/bug_14557_add_libriskey_syspref.sql | 2 -- installer/data/mysql/updatedatabase.pl | 12 ++++++++++++ 3 files changed, 13 insertions(+), 3 deletions(-) delete mode 100644 installer/data/mysql/atomicupdate/bug_14557_add_libriskey_syspref.sql diff --git a/Koha.pm b/Koha.pm index f2e64faf01..46dc84fc48 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.046"; +$VERSION = "18.12.00.047"; sub version { return $VERSION; diff --git a/installer/data/mysql/atomicupdate/bug_14557_add_libriskey_syspref.sql b/installer/data/mysql/atomicupdate/bug_14557_add_libriskey_syspref.sql deleted file mode 100644 index c7d2386aad..0000000000 --- a/installer/data/mysql/atomicupdate/bug_14557_add_libriskey_syspref.sql +++ /dev/null @@ -1,2 +0,0 @@ -INSERT INTO systempreferences (variable,value,explanation,options,type) VALUES ('LibrisKey', '', 'This key must be obtained at http://api.libris.kb.se/. It is unique for the IP of the server.', NULL, 'Free'); -INSERT INTO systempreferences (variable,value,explanation,options,type) VALUES ('LibrisURL', 'http://api.libris.kb.se/bibspell/', 'This it the base URL for the Libris spellchecking API.',NULL,'Free'); diff --git a/installer/data/mysql/updatedatabase.pl b/installer/data/mysql/updatedatabase.pl index 55457fbf69..54c7889613 100755 --- a/installer/data/mysql/updatedatabase.pl +++ b/installer/data/mysql/updatedatabase.pl @@ -18012,6 +18012,18 @@ if( CheckVersion( $DBversion ) ) { print "Upgrade to $DBversion done (Bug 22695 - Remove non-XSLT search results view from the staff client)\n"; } +$DBversion = '18.12.00.047'; +if( CheckVersion( $DBversion ) ) { + $dbh->do(q| + INSERT IGNORE INTO systempreferences (variable,value,explanation,options,type) VALUES ('LibrisKey', '', 'This key must be obtained at http://api.libris.kb.se/. It is unique for the IP of the server.', NULL, 'Free'); + |); + $dbh->do(q| + INSERT IGNORE INTO systempreferences (variable,value,explanation,options,type) VALUES ('LibrisURL', 'http://api.libris.kb.se/bibspell/', 'This is the base URL for the Libris spellchecking API.',NULL,'Free'); + |); + SetVersion( $DBversion ); + print "Upgrade to $DBversion done (Bug 14557: Add Libris spellchecking system preferences)\n"; +} + # SEE bug 13068 # if there is anything in the atomicupdate, read and execute it. -- 2.39.5