Bug 17682: DBRev 17.05.08.002
authorFridolin Somers <fridolin.somers@biblibre.com>
Fri, 2 Feb 2018 08:18:16 +0000 (09:18 +0100)
committerFridolin Somers <fridolin.somers@biblibre.com>
Fri, 2 Feb 2018 08:18:18 +0000 (09:18 +0100)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>

Koha.pm
installer/data/mysql/atomicupdate/bug17682_urlchangeforgooglescholar.sql [deleted file]
installer/data/mysql/updatedatabase.pl

diff --git a/Koha.pm b/Koha.pm
index edf36c4..d88b6e5 100644 (file)
--- 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 = "17.05.08.001";
+$VERSION = "17.05.08.002";
 
 sub version {
     return $VERSION;
diff --git a/installer/data/mysql/atomicupdate/bug17682_urlchangeforgooglescholar.sql b/installer/data/mysql/atomicupdate/bug17682_urlchangeforgooglescholar.sql
deleted file mode 100644 (file)
index 18e9603..0000000
+++ /dev/null
@@ -1 +0,0 @@
-UPDATE systempreferences set value =  replace(value, "http://www.scholar", "https://scholar") where variable = 'OPACSearchForTitleIn';
index 502ef14..9ccb550 100755 (executable)
@@ -14655,6 +14655,15 @@ if( CheckVersion( $DBversion ) ) {
     print "Upgrade to $DBversion done (Bug 18915 - Correct CHECKOUT_NOTE notice template)\n";
 }
 
+$DBversion = '17.05.08.002';
+if( CheckVersion( $DBversion ) ) {
+    $dbh->do(q{
+        UPDATE systempreferences SET value=replace(value, "http://www.scholar", "https://scholar") WHERE variable='OPACSearchForTitleIn';
+    });
+    SetVersion( $DBversion );
+    print "Upgrade to $DBversion done (Bug 17682 - Update URL for Google Scholar in OPACSearchForTitleIn)\n";
+}
+
 # DEVELOPER PROCESS, search for anything to execute in the db_update directory
 # SEE bug 13068
 # if there is anything in the atomicupdate, read and execute it.