From 4e376338f175a12bb63d015b6be1afbab49ad8f9 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Tue, 24 Apr 2018 12:00:36 -0300 Subject: [PATCH] Bug 20245: DBRev 17.12.00.038 Signed-off-by: Jonathan Druart --- Koha.pm | 2 +- .../bug_20245-update_slovak-language-code.sql | 1 - installer/data/mysql/updatedatabase.pl | 11 +++++++++++ 3 files changed, 12 insertions(+), 2 deletions(-) delete mode 100644 installer/data/mysql/atomicupdate/bug_20245-update_slovak-language-code.sql diff --git a/Koha.pm b/Koha.pm index 5dd6ff9187..dc8b1b0aa2 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 = "17.12.00.037"; +$VERSION = "17.12.00.038"; sub version { return $VERSION; diff --git a/installer/data/mysql/atomicupdate/bug_20245-update_slovak-language-code.sql b/installer/data/mysql/atomicupdate/bug_20245-update_slovak-language-code.sql deleted file mode 100644 index 871f5f0866..0000000000 --- a/installer/data/mysql/atomicupdate/bug_20245-update_slovak-language-code.sql +++ /dev/null @@ -1 +0,0 @@ -UPDATE language_rfc4646_to_iso639 SET iso639_2_code = 'slo' WHERE iso639_2_code = 'slk' AND rfc4646_subtag = 'sk'; diff --git a/installer/data/mysql/updatedatabase.pl b/installer/data/mysql/updatedatabase.pl index 9e466f79f8..e5b50acfa4 100755 --- a/installer/data/mysql/updatedatabase.pl +++ b/installer/data/mysql/updatedatabase.pl @@ -15941,6 +15941,17 @@ if( CheckVersion( $DBversion ) ) { print "Upgrade to $DBversion done (Bug 20073 - Add new types for Elasticsearch fields)\n"; } +$DBversion = '17.12.00.038'; +if( CheckVersion( $DBversion ) ) { + + $dbh->do( q{ + UPDATE language_rfc4646_to_iso639 SET iso639_2_code = 'slo' WHERE iso639_2_code = 'slk' AND rfc4646_subtag = 'sk'; + } ); + + SetVersion( $DBversion ); + print "Upgrade to $DBversion done (Bug 20245 - Use Bibliographic code value for Slovak language)\n"; +} + # SEE bug 13068 # if there is anything in the atomicupdate, read and execute it.