From 4859e49539e37f08689df3ba001739711f1332a4 Mon Sep 17 00:00:00 2001 From: Nick Clemens Date: Tue, 2 Oct 2018 00:05:22 +0000 Subject: [PATCH] Bug 21403: DBRev 18.06.00.035 Signed-off-by: Nick Clemens --- Koha.pm | 2 +- .../atomicupdate/bug_21403-add_indian_amazon_domain.sql | 1 - installer/data/mysql/updatedatabase.pl | 9 +++++++++ 3 files changed, 10 insertions(+), 2 deletions(-) delete mode 100644 installer/data/mysql/atomicupdate/bug_21403-add_indian_amazon_domain.sql diff --git a/Koha.pm b/Koha.pm index c9522bff85..5ab733cfbc 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.034"; +$VERSION = "18.06.00.035"; sub version { return $VERSION; diff --git a/installer/data/mysql/atomicupdate/bug_21403-add_indian_amazon_domain.sql b/installer/data/mysql/atomicupdate/bug_21403-add_indian_amazon_domain.sql deleted file mode 100644 index 2843f454ae..0000000000 --- a/installer/data/mysql/atomicupdate/bug_21403-add_indian_amazon_domain.sql +++ /dev/null @@ -1 +0,0 @@ -UPDATE `systempreferences` SET options = 'US|CA|DE|FR|IN|JP|UK' WHERE variable = 'AmazonLocale' AND options='US|CA|DE|FR|JP|UK'; diff --git a/installer/data/mysql/updatedatabase.pl b/installer/data/mysql/updatedatabase.pl index 4c5fcd1314..e9ad680be2 100755 --- a/installer/data/mysql/updatedatabase.pl +++ b/installer/data/mysql/updatedatabase.pl @@ -16474,6 +16474,15 @@ if( CheckVersion( $DBversion ) ) { print "Upgrade to $DBversion done (Bug 17602 - Integrate support for OneClickdigital/Recorded Books API)\n"; } +$DBversion = '18.06.00.035'; +if( CheckVersion( $DBversion ) ) { + $dbh->do(q{ + UPDATE `systempreferences` SET options = 'US|CA|DE|FR|IN|JP|UK' WHERE variable = 'AmazonLocale' AND options='US|CA|DE|FR|JP|UK'; + }); + SetVersion( $DBversion ); + print "Upgrade to $DBversion done (Bug 21403 - Add Indian Amazon Affiliate option to AmazonLocale setting)\n"; +} + # SEE bug 13068 # if there is anything in the atomicupdate, read and execute it. -- 2.39.5