Fix ISO compliance for German counties
authorThomas Schüttler <tschuettler@oxfam.de>
Wed, 8 Nov 2017 13:21:14 +0000 (14:21 +0100)
committerThomas Schüttler <tschuettler@oxfam.de>
Wed, 8 Nov 2017 13:21:14 +0000 (14:21 +0100)
CRM/Upgrade/Incremental/sql/4.7.29.mysql.tpl
xml/templates/civicrm_state_province.tpl

index 444a0ba0e1ee5cdb9d8ea2785bb33615ccc2c9ab..cd41c1f055b46267e732cf34462944a97814d333 100644 (file)
@@ -1 +1,6 @@
 {* file to handle db changes in 4.7.29 during upgrade *}
+
+-- CRM-21407 ISO compliance for German counties
+UPDATE `civicrm_state_province` SET `name` = 'Baden-Württemberg' WHERE `name` = 'Baden-Wuerttemberg' AND `country_id` = 1082;
+UPDATE `civicrm_state_province` SET `abbreviation` = 'BE' WHERE `name` = 'Berlin' AND `abbreviation` = 'BR' AND `country_id` = 1082;
+UPDATE `civicrm_state_province` SET `name` = 'Thüringen' WHERE `name` = 'Thueringen' AND `country_id` = 1082;
\ No newline at end of file
index 16c6e23734a01200cac9361b747df451035c82b3..ff93c97eb7467e7c1e3d6ecdd0a7d47e65c2faa8 100644 (file)
@@ -872,7 +872,7 @@ INSERT INTO civicrm_state_province (id, country_id, abbreviation, name) VALUES
 (2237, 1058, "US", "Ústecký kraj"),
 (2238, 1058, "VY", "Vysočina"),
 (2239, 1058, "ZL", "Zlínský kraj"),
-(2240, 1082, "BW", "Baden-Wuerttemberg"),
+(2240, 1082, "BW", "Baden-Württemberg"),
 (2241, 1082, "BY", "Bayern"),
 (2242, 1082, "HB", "Bremen"),
 (2243, 1082, "HH", "Hamburg"),
@@ -882,12 +882,12 @@ INSERT INTO civicrm_state_province (id, country_id, abbreviation, name) VALUES
 (2247, 1082, "RP", "Rheinland-Pfalz"),
 (2248, 1082, "SL", "Saarland"),
 (2249, 1082, "SH", "Schleswig-Holstein"),
-(2250, 1082, "BR", "Berlin"),
+(2250, 1082, "BE", "Berlin"),
 (2251, 1082, "BB", "Brandenburg"),
 (2252, 1082, "MV", "Mecklenburg-Vorpommern"),
 (2253, 1082, "SN", "Sachsen"),
 (2254, 1082, "ST", "Sachsen-Anhalt"),
-(2255, 1082, "TH", "Thueringen"),
+(2255, 1082, "TH", "Thüringen"),
 (2256, 1060, "AS", "Ali Sabiah"),
 (2257, 1060, "DI", "Dikhil"),
 (2258, 1060, "DJ", "Djibouti"),