Skip to content

Commit

Permalink
CRM-21532 add missing French state/departments (#11392)
Browse files Browse the repository at this point in the history
* CRM-21532 add missing French state/departments

* get country id using name and iso code for state insert statement
  • Loading branch information
sunil pawar authored and eileenmcnaughton committed Dec 13, 2017
1 parent 4fe5b08 commit 463ef09
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
6 changes: 6 additions & 0 deletions CRM/Upgrade/Incremental/sql/4.7.29.mysql.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -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");
3 changes: 3 additions & 0 deletions xml/templates/civicrm_state_province.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -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"),
Expand Down

0 comments on commit 463ef09

Please sign in to comment.