Skip to content

Commit

Permalink
v1.2.0 Fix SQL generation; Update Antarctica native to be not empty
Browse files Browse the repository at this point in the history
  • Loading branch information
dmythro committed Aug 28, 2016
1 parent 7c25182 commit bae3ec1
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion countries.json
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@
},
"AQ": {
"name": "Antarctica",
"native": "",
"native": "Antarctica",
"phone": "",
"continent": "AN",
"capital": "",
Expand Down
2 changes: 1 addition & 1 deletion countries.min.json

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions countries.sql
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ CREATE TABLE `countries` (
KEY `continent` (`continent`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;

INSERT INTO `countries` (`code`, `name`) VALUES
INSERT INTO `countries` (`code`, `name`, `native`, `phone`, `continent`, `capital`, `currency`, `languages`) VALUES
('AD', 'Andorra', 'Andorra', '376', 'EU', 'Andorra la Vella', 'EUR', 'ca'),
('AE', 'United Arab Emirates', 'دولة الإمارات العربية المتحدة', '971', 'AS', 'Abu Dhabi', 'AED', 'ar'),
('AF', 'Afghanistan', 'افغانستان', '93', 'AS', 'Kabul', 'AFN', 'ps,uz,tk'),
Expand All @@ -37,7 +37,7 @@ INSERT INTO `countries` (`code`, `name`) VALUES
('AL', 'Albania', 'Shqipëria', '355', 'EU', 'Tirana', 'ALL', 'sq'),
('AM', 'Armenia', 'Հայաստան', '374', 'AS', 'Yerevan', 'AMD', 'hy,ru'),
('AO', 'Angola', 'Angola', '244', 'AF', 'Luanda', 'AOA', 'pt'),
('AQ', 'Antarctica', '', '', 'AN', '', '', ''),
('AQ', 'Antarctica', 'Antarctica', '', 'AN', '', '', ''),
('AR', 'Argentina', 'Argentina', '54', 'SA', 'Buenos Aires', 'ARS', 'es,gn'),
('AS', 'American Samoa', 'American Samoa', '1684', 'OC', 'Pago Pago', 'USD', 'en,sm'),
('AT', 'Austria', 'Österreich', '43', 'EU', 'Vienna', 'EUR', 'de'),
Expand Down
2 changes: 1 addition & 1 deletion gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ gulp.task(DO_SQL, function (callback) {
+ LF + LF
+ sqlHeader('countries', countryFields)
+ LF + LF
+ sqlValues('countries', continentFields, countryList);
+ sqlValues('countries', countryFields, countryList);

fs.writeFile(`./${NAME}.${DO_SQL}`, sql + LF, callback);
});
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "countries-list",
"version": "1.1.0",
"version": "1.2.0",
"description": "Continents & countries: ISO 3166-1 alpha-2 code, name, languages, capital and currency, native name, calling codes. Available in JSON and SQL formats.",
"main": "countries.json",
"repository": {
Expand Down

0 comments on commit bae3ec1

Please sign in to comment.