Skip to content

Commit bae3ec1

Browse files
committed
v1.2.0 Fix SQL generation; Update Antarctica native to be not empty
1 parent 7c25182 commit bae3ec1

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

countries.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@
8383
},
8484
"AQ": {
8585
"name": "Antarctica",
86-
"native": "",
86+
"native": "Antarctica",
8787
"phone": "",
8888
"continent": "AN",
8989
"capital": "",

countries.min.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

countries.sql

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ CREATE TABLE `countries` (
2828
KEY `continent` (`continent`)
2929
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
3030

31-
INSERT INTO `countries` (`code`, `name`) VALUES
31+
INSERT INTO `countries` (`code`, `name`, `native`, `phone`, `continent`, `capital`, `currency`, `languages`) VALUES
3232
('AD', 'Andorra', 'Andorra', '376', 'EU', 'Andorra la Vella', 'EUR', 'ca'),
3333
('AE', 'United Arab Emirates', 'دولة الإمارات العربية المتحدة', '971', 'AS', 'Abu Dhabi', 'AED', 'ar'),
3434
('AF', 'Afghanistan', 'افغانستان', '93', 'AS', 'Kabul', 'AFN', 'ps,uz,tk'),
@@ -37,7 +37,7 @@ INSERT INTO `countries` (`code`, `name`) VALUES
3737
('AL', 'Albania', 'Shqipëria', '355', 'EU', 'Tirana', 'ALL', 'sq'),
3838
('AM', 'Armenia', 'Հայաստան', '374', 'AS', 'Yerevan', 'AMD', 'hy,ru'),
3939
('AO', 'Angola', 'Angola', '244', 'AF', 'Luanda', 'AOA', 'pt'),
40-
('AQ', 'Antarctica', '', '', 'AN', '', '', ''),
40+
('AQ', 'Antarctica', 'Antarctica', '', 'AN', '', '', ''),
4141
('AR', 'Argentina', 'Argentina', '54', 'SA', 'Buenos Aires', 'ARS', 'es,gn'),
4242
('AS', 'American Samoa', 'American Samoa', '1684', 'OC', 'Pago Pago', 'USD', 'en,sm'),
4343
('AT', 'Austria', 'Österreich', '43', 'EU', 'Vienna', 'EUR', 'de'),

gulpfile.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ gulp.task(DO_SQL, function (callback) {
8585
+ LF + LF
8686
+ sqlHeader('countries', countryFields)
8787
+ LF + LF
88-
+ sqlValues('countries', continentFields, countryList);
88+
+ sqlValues('countries', countryFields, countryList);
8989

9090
fs.writeFile(`./${NAME}.${DO_SQL}`, sql + LF, callback);
9191
});

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "countries-list",
3-
"version": "1.1.0",
3+
"version": "1.2.0",
44
"description": "Continents & countries: ISO 3166-1 alpha-2 code, name, languages, capital and currency, native name, calling codes. Available in JSON and SQL formats.",
55
"main": "countries.json",
66
"repository": {

0 commit comments

Comments
 (0)