Bug 20482: DBRev 17.12.00.039
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Tue, 24 Apr 2018 15:04:29 +0000 (12:04 -0300)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Tue, 24 Apr 2018 15:04:46 +0000 (12:04 -0300)
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
installer/data/mysql/atomicupdate/bug_20482_update_language_codes.sql [deleted file]
installer/data/mysql/updatedatabase.pl

diff --git a/installer/data/mysql/atomicupdate/bug_20482_update_language_codes.sql b/installer/data/mysql/atomicupdate/bug_20482_update_language_codes.sql
deleted file mode 100644 (file)
index ae7d1aa..0000000
+++ /dev/null
@@ -1,3 +0,0 @@
-UPDATE language_rfc4646_to_iso639 SET iso639_2_code = 'baq' WHERE iso639_2_code = 'eus' AND rfc4646_subtag = 'eu';
-UPDATE language_rfc4646_to_iso639 SET iso639_2_code = 'mao' WHERE iso639_2_code = 'mri' AND rfc4646_subtag = 'mi';
-UPDATE language_rfc4646_to_iso639 SET iso639_2_code = 'alb' WHERE iso639_2_code = 'sqi' AND rfc4646_subtag = 'sq';
index e5b50ac..cc569b3 100755 (executable)
@@ -15952,6 +15952,23 @@ if( CheckVersion( $DBversion ) ) {
     print "Upgrade to $DBversion done (Bug 20245 - Use Bibliographic code value for Slovak language)\n";
 }
 
+$DBversion = '17.12.00.039';
+if( CheckVersion( $DBversion ) ) {
+
+    $dbh->do( q{
+        UPDATE language_rfc4646_to_iso639 SET iso639_2_code = 'baq' WHERE iso639_2_code = 'eus' AND rfc4646_subtag = 'eu';
+    } );
+    $dbh->do( q{
+        UPDATE language_rfc4646_to_iso639 SET iso639_2_code = 'mao' WHERE iso639_2_code = 'mri' AND rfc4646_subtag = 'mi';
+    } );
+    $dbh->do( q{
+        UPDATE language_rfc4646_to_iso639 SET iso639_2_code = 'alb' WHERE iso639_2_code = 'sqi' AND rfc4646_subtag = 'sq';
+    } );
+
+    SetVersion( $DBversion );
+    print "Upgrade to $DBversion done (Bug 20482 - Use Bibliographic code value for Basque, Maori and Albanian languages)\n";
+}
+
 # SEE bug 13068
 # if there is anything in the atomicupdate, read and execute it.