-
-
Notifications
You must be signed in to change notification settings - Fork 11
/
set-country.sql
251 lines (251 loc) · 7.69 KB
/
set-country.sql
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
UPDATE museums SET country = case osm_country_code
when 'af' then 'Afghanistan'
when 'ax' then 'Åland Islands'
when 'al' then 'Albania'
when 'dz' then 'Algeria'
when 'as' then 'American Samoa'
when 'ad' then 'Andorra'
when 'ao' then 'Angola'
when 'ai' then 'Anguilla'
when 'aq' then 'Antarctica'
when 'ag' then 'Antigua and Barbuda'
when 'ar' then 'Argentina'
when 'am' then 'Armenia'
when 'aw' then 'Aruba'
when 'au' then 'Australia'
when 'at' then 'Austria'
when 'az' then 'Azerbaijan'
when 'bs' then 'Bahamas'
when 'bh' then 'Bahrain'
when 'bd' then 'Bangladesh'
when 'bb' then 'Barbados'
when 'by' then 'Belarus'
when 'be' then 'Belgium'
when 'bz' then 'Belize'
when 'bj' then 'Benin'
when 'bm' then 'Bermuda'
when 'bt' then 'Bhutan'
when 'bo' then 'Bolivia, Plurinational State of'
when 'bq' then 'Bonaire, Sint Eustatius and Saba'
when 'ba' then 'Bosnia and Herzegovina'
when 'bw' then 'Botswana'
when 'bv' then 'Bouvet Island'
when 'br' then 'Brazil'
when 'io' then 'British Indian Ocean Territory'
when 'bn' then 'Brunei Darussalam'
when 'bg' then 'Bulgaria'
when 'bf' then 'Burkina Faso'
when 'bi' then 'Burundi'
when 'kh' then 'Cambodia'
when 'cm' then 'Cameroon'
when 'ca' then 'Canada'
when 'cv' then 'Cape Verde'
when 'ky' then 'Cayman Islands'
when 'cf' then 'Central African Republic'
when 'td' then 'Chad'
when 'cl' then 'Chile'
when 'cn' then 'China'
when 'cx' then 'Christmas Island'
when 'cc' then 'Cocos (Keeling) Islands'
when 'co' then 'Colombia'
when 'km' then 'Comoros'
when 'cg' then 'Congo'
when 'cd' then 'Congo, the Democratic Republic of the'
when 'ck' then 'Cook Islands'
when 'cr' then 'Costa Rica'
when 'ci' then 'Côte d''Ivoire'
when 'hr' then 'Croatia'
when 'cu' then 'Cuba'
when 'cw' then 'Curaçao'
when 'cy' then 'Cyprus'
when 'cz' then 'Czech Republic'
when 'dk' then 'Denmark'
when 'dj' then 'Djibouti'
when 'dm' then 'Dominica'
when 'do' then 'Dominican Republic'
when 'ec' then 'Ecuador'
when 'eg' then 'Egypt'
when 'sv' then 'El Salvador'
when 'gq' then 'Equatorial Guinea'
when 'er' then 'Eritrea'
when 'ee' then 'Estonia'
when 'et' then 'Ethiopia'
when 'fk' then 'Falkland Islands (Malvinas)'
when 'fo' then 'Faroe Islands'
when 'fj' then 'Fiji'
when 'fi' then 'Finland'
when 'fr' then 'France'
when 'gf' then 'French Guiana'
when 'pf' then 'French Polynesia'
when 'tf' then 'French Southern Territories'
when 'ga' then 'Gabon'
when 'gm' then 'Gambia'
when 'ge' then 'Georgia'
when 'de' then 'Germany'
when 'gh' then 'Ghana'
when 'gi' then 'Gibraltar'
when 'gr' then 'Greece'
when 'gl' then 'Greenland'
when 'gd' then 'Grenada'
when 'gp' then 'Guadeloupe'
when 'gu' then 'Guam'
when 'gt' then 'Guatemala'
when 'gg' then 'Guernsey'
when 'gn' then 'Guinea'
when 'gw' then 'Guinea-Bissau'
when 'gy' then 'Guyana'
when 'ht' then 'Haiti'
when 'hm' then 'Heard Island and McDonald Islands'
when 'va' then 'Holy See (Vatican City State)'
when 'hn' then 'Honduras'
when 'hk' then 'Hong Kong'
when 'hu' then 'Hungary'
when 'is' then 'Iceland'
when 'in' then 'India'
when 'id' then 'Indonesia'
when 'ir' then 'Iran, Islamic Republic of'
when 'iq' then 'Iraq'
when 'ie' then 'Ireland'
when 'im' then 'Isle of Man'
when 'il' then 'Israel'
when 'it' then 'Italy'
when 'jm' then 'Jamaica'
when 'jp' then 'Japan'
when 'je' then 'Jersey'
when 'jo' then 'Jordan'
when 'kz' then 'Kazakhstan'
when 'ke' then 'Kenya'
when 'ki' then 'Kiribati'
when 'kp' then 'Korea, Democratic People''s Republic of'
when 'kr' then 'Korea, Republic of'
when 'kw' then 'Kuwait'
when 'kg' then 'Kyrgyzstan'
when 'la' then 'Lao People''s Democratic Republic'
when 'lv' then 'Latvia'
when 'lb' then 'Lebanon'
when 'ls' then 'Lesotho'
when 'lr' then 'Liberia'
when 'ly' then 'Libya'
when 'li' then 'Liechtenstein'
when 'lt' then 'Lithuania'
when 'lu' then 'Luxembourg'
when 'mo' then 'Macao'
when 'mk' then 'Macedonia, the Former Yugoslav Republic of'
when 'mg' then 'Madagascar'
when 'mw' then 'Malawi'
when 'my' then 'Malaysia'
when 'mv' then 'Maldives'
when 'ml' then 'Mali'
when 'mt' then 'Malta'
when 'mh' then 'Marshall Islands'
when 'mq' then 'Martinique'
when 'mr' then 'Mauritania'
when 'mu' then 'Mauritius'
when 'yt' then 'Mayotte'
when 'mx' then 'Mexico'
when 'fm' then 'Micronesia, Federated States of'
when 'md' then 'Moldova, Republic of'
when 'mc' then 'Monaco'
when 'mn' then 'Mongolia'
when 'me' then 'Montenegro'
when 'ms' then 'Montserrat'
when 'ma' then 'Morocco'
when 'mz' then 'Mozambique'
when 'mm' then 'Myanmar'
when 'na' then 'Namibia'
when 'nr' then 'Nauru'
when 'np' then 'Nepal'
when 'nl' then 'Netherlands'
when 'nc' then 'New Caledonia'
when 'nz' then 'New Zealand'
when 'ni' then 'Nicaragua'
when 'ne' then 'Niger'
when 'ng' then 'Nigeria'
when 'nu' then 'Niue'
when 'nf' then 'Norfolk Island'
when 'mp' then 'Northern Mariana Islands'
when 'no' then 'Norway'
when 'om' then 'Oman'
when 'pk' then 'Pakistan'
when 'pw' then 'Palau'
when 'ps' then 'Palestine, State of'
when 'pa' then 'Panama'
when 'pg' then 'Papua New Guinea'
when 'py' then 'Paraguay'
when 'pe' then 'Peru'
when 'ph' then 'Philippines'
when 'pn' then 'Pitcairn'
when 'pl' then 'Poland'
when 'pt' then 'Portugal'
when 'pr' then 'Puerto Rico'
when 'qa' then 'Qatar'
when 're' then 'Réunion'
when 'ro' then 'Romania'
when 'ru' then 'Russian Federation'
when 'rw' then 'Rwanda'
when 'bl' then 'Saint Barthélemy'
when 'sh' then 'Saint Helena, Ascension and Tristan da Cunha'
when 'kn' then 'Saint Kitts and Nevis'
when 'lc' then 'Saint Lucia'
when 'mf' then 'Saint Martin (French part)'
when 'pm' then 'Saint Pierre and Miquelon'
when 'vc' then 'Saint Vincent and the Grenadines'
when 'ws' then 'Samoa'
when 'sm' then 'San Marino'
when 'st' then 'Sao Tome and Principe'
when 'sa' then 'Saudi Arabia'
when 'sn' then 'Senegal'
when 'rs' then 'Serbia'
when 'sc' then 'Seychelles'
when 'sl' then 'Sierra Leone'
when 'sg' then 'Singapore'
when 'sx' then 'Sint Maarten (Dutch part)'
when 'sk' then 'Slovakia'
when 'si' then 'Slovenia'
when 'sb' then 'Solomon Islands'
when 'so' then 'Somalia'
when 'za' then 'South Africa'
when 'gs' then 'South Georgia and the South Sandwich Islands'
when 'ss' then 'South Sudan'
when 'es' then 'Spain'
when 'lk' then 'Sri Lanka'
when 'sd' then 'Sudan'
when 'sr' then 'Suriname'
when 'sj' then 'Svalbard and Jan Mayen'
when 'sz' then 'Swaziland'
when 'se' then 'Sweden'
when 'ch' then 'Switzerland'
when 'sy' then 'Syrian Arab Republic'
when 'tw' then 'Taiwan, Province of China'
when 'tj' then 'Tajikistan'
when 'tz' then 'Tanzania, United Republic of'
when 'th' then 'Thailand'
when 'tl' then 'Timor-Leste'
when 'tg' then 'Togo'
when 'tk' then 'Tokelau'
when 'to' then 'Tonga'
when 'tt' then 'Trinidad and Tobago'
when 'tn' then 'Tunisia'
when 'tr' then 'Turkey'
when 'tm' then 'Turkmenistan'
when 'tc' then 'Turks and Caicos Islands'
when 'tv' then 'Tuvalu'
when 'ug' then 'Uganda'
when 'ua' then 'Ukraine'
when 'ae' then 'United Arab Emirates'
when 'gb' then 'United Kingdom'
when 'us' then 'United States'
when 'um' then 'United States Minor Outlying Islands'
when 'uy' then 'Uruguay'
when 'uz' then 'Uzbekistan'
when 'vu' then 'Vanuatu'
when 've' then 'Venezuela, Bolivarian Republic of'
when 'vn' then 'Viet Nam'
when 'vg' then 'Virgin Islands, British'
when 'vi' then 'Virgin Islands, U.S.'
when 'wf' then 'Wallis and Futuna'
when 'eh' then 'Western Sahara'
when 'ye' then 'Yemen'
when 'zm' then 'Zambia'
when 'zw' then 'Zimbabwe'
END;