Skip to content

Commit

Permalink
Add Colombia missing state
Browse files Browse the repository at this point in the history
  • Loading branch information
joapta authored and colemanw committed Nov 24, 2021
1 parent b0518de commit 48e6820
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
5 changes: 5 additions & 0 deletions CRM/Upgrade/Incremental/sql/5.45.alpha1.mysql.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,8 @@ UPDATE civicrm_state_province SET name = 'Davao del Norte' WHERE country_id = @P
UPDATE civicrm_state_province SET name = 'Davao de Oro' WHERE country_id = @PHILIPPINESID AND abbreviation = "COM" AND name = "Compostela Valley";
UPDATE civicrm_state_province SET name = 'Kalinga' WHERE country_id = @PHILIPPINESID AND abbreviation = "KAL" AND name = "Kalinga-Apayso";
UPDATE civicrm_state_province SET name = 'Cotabato' WHERE country_id = @PHILIPPINESID AND abbreviation = "NCO" AND name = "North Cotabato";

-- Add missing state for Colombia
SELECT @country_id := id from civicrm_country where name = 'Colombia' AND iso_code = 'CO';
INSERT IGNORE INTO `civicrm_state_province` (`id`, `country_id`, `abbreviation`, `name`) VALUES
(NULL, @country_id, 'HUI', 'Huila');
3 changes: 2 additions & 1 deletion sql/civicrm_generated.mysql
Original file line number Diff line number Diff line change
Expand Up @@ -11914,7 +11914,8 @@ INSERT INTO `civicrm_state_province` (`id`, `name`, `abbreviation`, `country_id`
(10391,'Torfaen','TOF',1226,1),
(10392,'Wrexham','WRX',1226,1),
(10393,'Sejong','50',1115,1),
(10394,'Dinagat Islands','DIN',1170,1);
(10394,'Dinagat Islands','DIN',1170,1),
(10395,'Huila','HUI',1048,1);
/*!40000 ALTER TABLE `civicrm_state_province` ENABLE KEYS */;
UNLOCK TABLES;

Expand Down
5 changes: 4 additions & 1 deletion xml/templates/civicrm_state_province.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -4144,4 +4144,7 @@ INSERT INTO civicrm_state_province (id, country_id, abbreviation, name) VALUES
(NULL, 1115, "50", "Sejong"),

-- Add missing province for Philippines
(NULL, 1170, "DIN", "Dinagat Islands");
(NULL, 1170, "DIN", "Dinagat Islands"),

-- Add missing state for Colombia
(NULL, 1048, "HUI", "Huila");

0 comments on commit 48e6820

Please sign in to comment.