From b3d46287a992e946039c03c84d3327f7c4b43413 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Mon, 26 Feb 2018 13:09:18 -0300 Subject: [PATCH] Bug 20082: DBRev 17.12.00.020 Signed-off-by: Jonathan Druart --- Koha.pm | 2 +- .../bug_20082_fix_vietnamese_description.sql | 6 ------ installer/data/mysql/updatedatabase.pl | 17 +++++++++++++++++ 3 files changed, 18 insertions(+), 7 deletions(-) delete mode 100644 installer/data/mysql/atomicupdate/bug_20082_fix_vietnamese_description.sql diff --git a/Koha.pm b/Koha.pm index 985be4748b..8c737f8fba 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.019"; +$VERSION = "17.12.00.020"; sub version { return $VERSION; diff --git a/installer/data/mysql/atomicupdate/bug_20082_fix_vietnamese_description.sql b/installer/data/mysql/atomicupdate/bug_20082_fix_vietnamese_description.sql deleted file mode 100644 index d1a1f2d02b..0000000000 --- a/installer/data/mysql/atomicupdate/bug_20082_fix_vietnamese_description.sql +++ /dev/null @@ -1,6 +0,0 @@ -INSERT IGNORE INTO language_descriptions(subtag, type, lang, description) - VALUES ('vi', 'language', 'de', 'Vietnamesisch'); -UPDATE language_descriptions SET description = 'Tiếng Việt' - WHERE subtag = 'vi' and type = 'language' and lang = 'vi'; - --- print "Upgrade to $DBversion done (Bug 20082 - Update descriptions of Vietnamese language)\n"; diff --git a/installer/data/mysql/updatedatabase.pl b/installer/data/mysql/updatedatabase.pl index 5c949635dc..5436db9694 100755 --- a/installer/data/mysql/updatedatabase.pl +++ b/installer/data/mysql/updatedatabase.pl @@ -15584,6 +15584,23 @@ if( CheckVersion( $DBversion ) ) { print "Upgrade to $DBversion done (Bug 20074 - Auth_subfield_structure changes hidden attribute)\n"; } +$DBversion = '17.12.00.020'; +if( CheckVersion( $DBversion ) ) { + + $dbh->do(q| + INSERT IGNORE INTO language_descriptions(subtag, type, lang, description) + VALUES ('vi', 'language', 'de', 'Vietnamesisch') + |); + + $dbh->do(q| + UPDATE language_descriptions SET description = 'Tiếng Việt' + WHERE subtag = 'vi' and type = 'language' and lang = 'vi' + |); + + SetVersion( $DBversion ); + print "Upgrade to $DBversion done (Bug 20082 - Update descriptions of Vietnamese language)\n"; +} + # SEE bug 13068 # if there is anything in the atomicupdate, read and execute it. -- 2.39.5