Skip to content

Commit

Permalink
Merge pull request #11793 from cor73x/CRM-21837
Browse files Browse the repository at this point in the history
Refs CRM-21837 - Missing states for Gabon
  • Loading branch information
mlutfy authored Mar 9, 2018
2 parents c6acb33 + 9792675 commit 8783e79
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 2 deletions.
13 changes: 13 additions & 0 deletions CRM/Upgrade/Incremental/sql/4.7.32.mysql.tpl
Original file line number Diff line number Diff line change
@@ -1 +1,14 @@
{* file to handle db changes in 4.7.32 during upgrade *}

-- CRM-21837 - Missing states for Gabon
SELECT @country_id := id from civicrm_country where name = 'Gabon' AND iso_code = 'GA';
INSERT INTO `civicrm_state_province` (`id`, `country_id`, `abbreviation`, `name`) VALUES
(NULL, @country_id, "01", "Estuaire"),
(NULL, @country_id, "02", "Haut-Ogooué"),
(NULL, @country_id, "03", "Moyen-Ogooué"),
(NULL, @country_id, "04", "Ngounié"),
(NULL, @country_id, "05", "Nyanga"),
(NULL, @country_id, "06", "Ogooué-Ivindo"),
(NULL, @country_id, "07", "Ogooué-Lolo"),
(NULL, @country_id, "08", "Ogooué-Maritime"),
(NULL, @country_id, "09", "Woleu-Ntem");
2 changes: 1 addition & 1 deletion sql/civicrm_generated.mysql

Large diffs are not rendered by default.

13 changes: 12 additions & 1 deletion xml/templates/civicrm_state_province.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -4109,4 +4109,15 @@ INSERT INTO civicrm_state_province (id, country_id, abbreviation, name) VALUES
(NULL, 1018, "08", "Saint Michael"),
(NULL, 1018, "09", "Saint Peter"),
(NULL, 1018, "10", "Saint Philip"),
(NULL, 1018, "11", "Saint Thomas");
(NULL, 1018, "11", "Saint Thomas"),

-- CRM-21837 - Missing states for Gabon
(NULL, 1080, "01", "Estuaire"),
(NULL, 1080, "02", "Haut-Ogooué"),
(NULL, 1080, "03", "Moyen-Ogooué"),
(NULL, 1080, "04", "Ngounié"),
(NULL, 1080, "05", "Nyanga"),
(NULL, 1080, "06", "Ogooué-Ivindo"),
(NULL, 1080, "07", "Ogooué-Lolo"),
(NULL, 1080, "08", "Ogooué-Maritime"),
(NULL, 1080, "09", "Woleu-Ntem");

0 comments on commit 8783e79

Please sign in to comment.