-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Addition of migration scripts to migrate from v1.0b6 to v1.0b7. * Always flake8! * Use of enumerate rather than explicit counter def.
- Loading branch information
1 parent
7e71b5d
commit d316718
Showing
5 changed files
with
450 additions
and
0 deletions.
There are no files selected for viewing
16 changes: 16 additions & 0 deletions
16
wis2box-management/migrations/v1_0b6_to_v1_0b7/mapping_files/facility_type.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
{ | ||
"Air (fixed)": "airFixed", | ||
"Air (mobile)": "airMobile", | ||
"Lake/River (fixed)": "lakeRiverFixed", | ||
"Lake/River (mobile)": "lakeRiverMobile", | ||
"Land (fixed)": "landFixed", | ||
"Land (mobile)": "landMobile", | ||
"Land (on ice)": "landOnIce", | ||
"Sea (fixed)": "seaFixed", | ||
"Sea (mobile)": "seaMobile", | ||
"Sea (on ice)": "seaOnIce", | ||
"Space-based": "spaceBased", | ||
"Underwater (fixed)": "underwaterFixed", | ||
"Underwater (mobile)": "underwaterMobile", | ||
"unknown": "unknown" | ||
} |
10 changes: 10 additions & 0 deletions
10
wis2box-management/migrations/v1_0b6_to_v1_0b7/mapping_files/operating_status.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"Closed": "closed", | ||
"Non-reporting": "nonReporting", | ||
"Operational": "operational", | ||
"Partly operational": "partlyOperational", | ||
"Planned": "planned", | ||
"Pre-operational": "preOperational", | ||
"Stand-by": "standBy", | ||
"unknown": "unknown" | ||
} |
226 changes: 226 additions & 0 deletions
226
wis2box-management/migrations/v1_0b6_to_v1_0b7/mapping_files/territory_name.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,226 @@ | ||
{ | ||
"Afghanistan": "AFG", | ||
"Angola": "AGO", | ||
"Anguilla": "AIA", | ||
"Albania": "ALB", | ||
"Andorra": "AND", | ||
"United Arab Emirates (the)": "ARE", | ||
"Argentina": "ARG", | ||
"Armenia": "ARM", | ||
"Antigua and Barbuda": "ATG", | ||
"Australia": "AUS", | ||
"Austria": "AUT", | ||
"Azerbaijan": "AZE", | ||
"British Caribbean Territories": "BCT", | ||
"Burundi": "BDI", | ||
"Belgium": "BEL", | ||
"Benin": "BEN", | ||
"Burkina Faso": "BFA", | ||
"Bangladesh": "BGD", | ||
"Bulgaria": "BGR", | ||
"Bahrain": "BHR", | ||
"Bahamas": "BHS", | ||
"Bosnia and Herzegovina": "BIH", | ||
"Belarus": "BLR", | ||
"Belize": "BLZ", | ||
"Bermuda": "BMU", | ||
"Bolivia, Plurinational State of": "BOL", | ||
"Brazil": "BRA", | ||
"Barbados": "BRB", | ||
"Brunei Darussalam": "BRN", | ||
"Bhutan": "BTN", | ||
"Botswana": "BWA", | ||
"Central African Republic": "CAF", | ||
"Canada": "CAN", | ||
"Cocos (Keeling) Islands": "CCK", | ||
"Switzerland": "CHE", | ||
"Chile": "CHL", | ||
"China": "CHN", | ||
"Cote d'Ivoire": "CIV", | ||
"Cameroon": "CMR", | ||
"Congo, Democratic Republic of the": "COD", | ||
"Congo": "COG", | ||
"Cook Islands": "COK", | ||
"Colombia": "COL", | ||
"Comoros": "COM", | ||
"Cabo Verde": "CPV", | ||
"Costa Rica": "CRI", | ||
"Curacao and Sint Maarten": "CSM", | ||
"Cuba": "CUB", | ||
"Curacao": "CUW", | ||
"Christmas Island": "CXR", | ||
"Cayman Islands": "CYM", | ||
"Cyprus": "CYP", | ||
"Czech Republic": "CZE", | ||
"Germany": "DEU", | ||
"Djibouti": "DJI", | ||
"Dominica": "DMA", | ||
"Denmark": "DNK", | ||
"Dominican Republic": "DOM", | ||
"Algeria": "DZA", | ||
"Ecuador": "ECU", | ||
"Egypt": "EGY", | ||
"Eritrea": "ERI", | ||
"Western Sahara": "ESH", | ||
"Spain": "ESP", | ||
"Estonia": "EST", | ||
"Ethiopia": "ETH", | ||
"Finland": "FIN", | ||
"Fiji": "FJI", | ||
"Falkland Islands (Malvinas)": "FLK", | ||
"France": "FRA", | ||
"Micronesia, Federated States of": "FSM", | ||
"Gabon": "GAB", | ||
"United Kingdom (the)": "GBR", | ||
"Georgia": "GEO", | ||
"Ghana": "GHA", | ||
"Gibraltar": "GIB", | ||
"Guinea": "GIN", | ||
"Gambia": "GMB", | ||
"Guinea-Bissau": "GNB", | ||
"Equatorial Guinea": "GNQ", | ||
"Greece": "GRC", | ||
"Grenada": "GRD", | ||
"Greenland": "GRL", | ||
"Guatemala": "GTM", | ||
"Guyana": "GUY", | ||
"Hong Kong, China": "HKG", | ||
"Honduras": "HND", | ||
"Croatia": "HRV", | ||
"Haiti": "HTI", | ||
"Hungary": "HUN", | ||
"Indonesia": "IDN", | ||
"India": "IND", | ||
"Ireland": "IRL", | ||
"Iran, Islamic Republic of": "IRN", | ||
"Iraq": "IRQ", | ||
"Iceland": "ISL", | ||
"Israel": "ISR", | ||
"Italy": "ITA", | ||
"Jamaica": "JAM", | ||
"Jordan": "JOR", | ||
"Japan": "JPN", | ||
"Kazakhstan": "KAZ", | ||
"Kenya": "KEN", | ||
"Kyrgyzstan": "KGZ", | ||
"Cambodia": "KHM", | ||
"Kiribati": "KIR", | ||
"Saint Kitts and Nevis": "KNA", | ||
"Korea, Republic of": "KOR", | ||
"Kuwait": "KWT", | ||
"Lao People's Democratic Republic": "LAO", | ||
"Lebanon": "LBN", | ||
"Liberia": "LBR", | ||
"Libya": "LBY", | ||
"Saint Lucia": "LCA", | ||
"Liechtenstein": "LIE", | ||
"Sri Lanka": "LKA", | ||
"Lesotho": "LSO", | ||
"Lithuania": "LTU", | ||
"Luxembourg": "LUX", | ||
"Latvia": "LVA", | ||
"Macao, China": "MAC", | ||
"Morocco": "MAR", | ||
"Monaco": "MCO", | ||
"Moldova, Republic of": "MDA", | ||
"Madagascar": "MDG", | ||
"Maldives": "MDV", | ||
"Mexico": "MEX", | ||
"Marshall Islands": "MHL", | ||
"Macedonia, the former Yugoslav Republic of": "MKD", | ||
"Mali": "MLI", | ||
"Malta": "MLT", | ||
"Myanmar": "MMR", | ||
"Montenegro": "MNE", | ||
"Mongolia": "MNG", | ||
"Mozambique": "MOZ", | ||
"Mauritania": "MRT", | ||
"Montserrat": "MSR", | ||
"Mauritius": "MUS", | ||
"Malawi": "MWI", | ||
"Malaysia": "MYS", | ||
"Namibia": "NAM", | ||
"New Caledonia": "NCL", | ||
"Niger": "NER", | ||
"Nigeria": "NGA", | ||
"Nicaragua": "NIC", | ||
"Niue": "NIU", | ||
"Netherlands": "NLD", | ||
"Norway": "NOR", | ||
"Nepal": "NPL", | ||
"Nauru": "NRU", | ||
"New Zealand": "NZL", | ||
"Oman": "OMN", | ||
"Pakistan": "PAK", | ||
"Panama": "PAN", | ||
"Pitcairn": "PCN", | ||
"Peru": "PER", | ||
"Philippines": "PHL", | ||
"Palau": "PLW", | ||
"Papua New Guinea": "PNG", | ||
"Poland": "POL", | ||
"Puerto Rico": "PRI", | ||
"Korea, Democratic People's Republic of": "PRK", | ||
"Portugal": "PRT", | ||
"Paraguay": "PRY", | ||
"Palestine, State of": "PSE", | ||
"French Polynesia": "PYF", | ||
"Qatar": "QAT", | ||
"Romania": "ROU", | ||
"Russian Federation": "RUS", | ||
"Rwanda": "RWA", | ||
"Saudi Arabia": "SAU", | ||
"Sudan": "SDN", | ||
"Senegal": "SEN", | ||
"Singapore": "SGP", | ||
"South Georgia and the South Sandwich Islands": "SGS", | ||
"Saint Helena": "SHN", | ||
"Solomon Islands": "SLB", | ||
"Sierra Leone": "SLE", | ||
"El Salvador": "SLV", | ||
"Somalia": "SOM", | ||
"Saint Pierre and Miquelon": "SPM", | ||
"Serbia": "SRB", | ||
"South Sudan": "SSD", | ||
"Sao Tome and Principe": "STP", | ||
"Suriname": "SUR", | ||
"Slovakia": "SVK", | ||
"Slovenia": "SVN", | ||
"Sweden": "SWE", | ||
"Eswatini": "SWZ", | ||
"Sint Maarten": "SXM", | ||
"Seychelles": "SYC", | ||
"Syrian Arab Republic": "SYR", | ||
"Turks and Caicos Islands": "TCA", | ||
"Chad": "TCD", | ||
"Togo": "TGO", | ||
"Thailand": "THA", | ||
"Tajikistan": "TJK", | ||
"Tokelau": "TKL", | ||
"Turkmenistan": "TKM", | ||
"Timor-Leste": "TLS", | ||
"Tonga": "TON", | ||
"Trinidad and Tobago": "TTO", | ||
"Tunisia": "TUN", | ||
"Turkey": "TUR", | ||
"Tuvalu": "TUV", | ||
"Taiwan, Province of China": "TWN", | ||
"Tanzania, United Republic of": "TZA", | ||
"Uganda": "UGA", | ||
"Ukraine": "UKR", | ||
"Uruguay": "URY", | ||
"United States (the)": "USA", | ||
"Uzbekistan": "UZB", | ||
"Saint Vincent and Grenadines": "VCT", | ||
"Venezuela, Bolivarian Republic of": "VEN", | ||
"British Virgin Islands": "VGB", | ||
"Viet Nam": "VNM", | ||
"Vanuatu": "VUT", | ||
"Samoa": "WSM", | ||
"Yemen": "YEM", | ||
"South Africa": "ZAF", | ||
"Zambia": "ZMB", | ||
"Zimbabwe": "ZWE", | ||
"inapplicable": "inapplicable", | ||
"unknown": "unknown" | ||
} |
8 changes: 8 additions & 0 deletions
8
wis2box-management/migrations/v1_0b6_to_v1_0b7/mapping_files/wmo_region.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ | ||
"I": "africa", | ||
"II": "asia", | ||
"III": "southAmerica", | ||
"IV": "northCentralAmericaCaribbean", | ||
"V": "southWestPacific", | ||
"VI": "europe" | ||
} |
Oops, something went wrong.