CRM-21532 add missing French state/departments (#11392)
authorsunil pawar <sunil@cividesk.com>
Wed, 13 Dec 2017 21:51:26 +0000 (03:21 +0530)
committerEileen McNaughton <eileen@mcnaughty.com>
Wed, 13 Dec 2017 21:51:26 +0000 (10:51 +1300)
* CRM-21532 add missing French state/departments

* get country id using name and iso code for state insert statement

CRM/Upgrade/Incremental/sql/4.7.29.mysql.tpl
xml/templates/civicrm_state_province.tpl

index 220be2115a501da58e7c98ffcd4645595ef837e9..228b4453f87700e9c277b01f4bff11d282b5b8f1 100644 (file)
@@ -8,3 +8,9 @@ UPDATE `civicrm_state_province` SET `name` = 'Thüringen' WHERE `name` = 'Thueri
 -- CRM-21378 Ensure that email abuse reports are treated as spam
 SELECT @bounceTypeID := max(id) FROM civicrm_mailing_bounce_type WHERE name = 'Spam';
 INSERT INTO civicrm_mailing_bounce_pattern (bounce_type_id, pattern) VALUES (@bounceTypeID, 'abuse report');
+
+
+-- CRM-21532 Add French state/departments
+SELECT @country_id := id from civicrm_country where name = 'France' AND iso_code = 'FR';
+INSERT INTO `civicrm_state_province` (`id`, `country_id`, `abbreviation`, `name`) VALUES
+(NULL, @country_id, "52", "Haute-Marne");
\ No newline at end of file
index ff93c97eb7467e7c1e3d6ecdd0a7d47e65c2faa8..3a6318f64e156f137cb8ed9431e8ca2e28d5c1f0 100644 (file)
@@ -4087,6 +4087,9 @@ INSERT INTO civicrm_state_province (id, country_id, abbreviation, name) VALUES
 (NULL, 1076, "WF", "Wallis-et-Futuna"),
 (NULL, 1076, "NC", "Nouvelle-Calédonie"),
 
+-- CRM-21532 Add French state/departments
+(NULL, 1076, "52", "Haute-Marne"),
+
 -- Add states for: Barbados and Antigua and Barbuda
 (NULL, 1009, "03", "Saint George"),
 (NULL, 1009, "04", "Saint John"),