Skip to content

Commit

Permalink
Added missing region - see #79 and thanks RD-PINGEDPNG!
Browse files Browse the repository at this point in the history
  • Loading branch information
stefangabos committed Aug 18, 2023
1 parent 3cd5d2f commit 2380da7
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 6 deletions.
1 change: 1 addition & 0 deletions data/subdivisions/subdivisions.json
Original file line number Diff line number Diff line change
Expand Up @@ -2189,6 +2189,7 @@
{"country":"PG","code":"PG-CPK","name":"Chimbu"},
{"country":"PG","code":"PG-EBR","name":"East New Britain"},
{"country":"PG","code":"PG-EHG","name":"Eastern Highlands"},
{"country":"PG","code":"PG-ESW","name":"East Sepik"},
{"country":"PG","code":"PG-MPM","name":"Madang"},
{"country":"PG","code":"PG-MRL","name":"Manus"},
{"country":"PG","code":"PG-MBA","name":"Milne Bay"},
Expand Down
1 change: 1 addition & 0 deletions data/subdivisions/subdivisions.php
Original file line number Diff line number Diff line change
Expand Up @@ -2191,6 +2191,7 @@
'PG-CPK' => array('country' => 'PG', 'code' => 'PG-CPK' , 'name' => 'Chimbu'),
'PG-EBR' => array('country' => 'PG', 'code' => 'PG-EBR' , 'name' => 'East New Britain'),
'PG-EHG' => array('country' => 'PG', 'code' => 'PG-EHG' , 'name' => 'Eastern Highlands'),
'PG-ESW' => array('country' => 'PG', 'code' => 'PG-ESW' , 'name' => 'East Sepik'),
'PG-MPM' => array('country' => 'PG', 'code' => 'PG-MPM' , 'name' => 'Madang'),
'PG-MRL' => array('country' => 'PG', 'code' => 'PG-MRL' , 'name' => 'Manus'),
'PG-MBA' => array('country' => 'PG', 'code' => 'PG-MBA' , 'name' => 'Milne Bay'),
Expand Down
13 changes: 7 additions & 6 deletions data/subdivisions/subdivisions.sql
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@ SET NAMES utf8;
DROP TABLE IF EXISTS `subdivisions`;

CREATE TABLE `subdivisions` (
`country` char(2) NOT NULL,
`code` char(8) NOT NULL DEFAULT "",
`name` varchar(50) NOT NULL DEFAULT "",
PRIMARY KEY (`code`),
UNIQUE KEY `country_code` (`country`,`code`)
`country` char(2) NOT NULL,
`code` char(8) NOT NULL DEFAULT "",
`name` varchar(50) NOT NULL DEFAULT "",
PRIMARY KEY (`code`),
UNIQUE KEY `country_code` (`country`,`code`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;

INSERT INTO `subdivisions` (`country`, `code`, `name`) VALUES
("AD","AD-07","Andorra la Vella"),
("AD","AD-07","Andorra la Vella"),
("AD","AD-02","Canillo"),
("AD","AD-03","Encamp"),
("AD","AD-08","Escaldes-Engordany"),
Expand Down Expand Up @@ -2202,6 +2202,7 @@ INSERT INTO `subdivisions` (`country`, `code`, `name`) VALUES
("PG","PG-CPK","Chimbu"),
("PG","PG-EBR","East New Britain"),
("PG","PG-EHG","Eastern Highlands"),
("PG","PG-ESW","East Sepik"),
("PG","PG-MPM","Madang"),
("PG","PG-MRL","Manus"),
("PG","PG-MBA","Milne Bay"),
Expand Down
1 change: 1 addition & 0 deletions data/subdivisions/subdivisions.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2191,6 +2191,7 @@
<subdivision country="PG" code="PG-CPK" name="Chimbu"/>
<subdivision country="PG" code="PG-EBR" name="East New Britain"/>
<subdivision country="PG" code="PG-EHG" name="Eastern Highlands"/>
<subdivision country="PG" code="PG-ESW" name="East Sepik"/>
<subdivision country="PG" code="PG-MPM" name="Madang"/>
<subdivision country="PG" code="PG-MRL" name="Manus"/>
<subdivision country="PG" code="PG-MBA" name="Milne Bay"/>
Expand Down

0 comments on commit 2380da7

Please sign in to comment.