Skip to content

Commit

Permalink
Drop support for additional xml, sqlite, yml combination files (#907)
Browse files Browse the repository at this point in the history
  • Loading branch information
dr5hn authored Oct 19, 2024
1 parent 1d9c232 commit bd5af89
Show file tree
Hide file tree
Showing 15 changed files with 6 additions and 5,293,110 deletions.
3 changes: 0 additions & 3 deletions .github/workflows/export.yml
Original file line number Diff line number Diff line change
Expand Up @@ -144,9 +144,6 @@ jobs:
mysql2sqlite -d world -t countries --mysql-password root -u root -f sqlite/countries.sqlite3
mysql2sqlite -d world -t states --mysql-password root -u root -f sqlite/states.sqlite3
mysql2sqlite -d world -t cities --mysql-password root -u root -f sqlite/cities.sqlite3
mysql2sqlite -d world -t countries states --mysql-password root -u root -f sqlite/countries+states.sqlite3
mysql2sqlite -d world -t countries cities --mysql-password root -u root -f sqlite/countries+cities.sqlite3
mysql2sqlite -d world -t states cities --mysql-password root -u root -f sqlite/states+cities.sqlite3
mysql2sqlite -d world --mysql-password root -u root -f sqlite/world.sqlite3
- name: Export SQL Server
Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,10 @@ All Countries, States & Cities are Covered & Populated with Different Combinatio
| Countries | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: |
| States | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: |
| Cities | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: |
| Country+States | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | NA | :white_check_mark: | :white_check_mark: | NA |
| Country+Cities | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | NA | :white_check_mark: | :white_check_mark: | NA |
| State+Cities | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | NA | :white_check_mark: | :white_check_mark: | NA |
| Country+State+Cities/World | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | NA | :white_check_mark: | :white_check_mark: | NA |
| Country+States | :white_check_mark: | NA | NA | NA | NA | NA | NA | NA |
| Country+Cities | :white_check_mark: | NA | NA | NA | NA | NA | NA | NA |
| State+Cities | :white_check_mark: | NA | NA | NA | NA | NA | NA | NA |
| Country+State+Cities/World | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | NA | NA | NA |

## Demo
https://dr5hn.github.io/countries-states-cities-database/
Expand Down
22 changes: 1 addition & 21 deletions scripts/export_xml.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,27 +31,7 @@
'from' => '/json/cities.json',
'to' => '/xml/cities.xml',
'singular' => 'city',
),
'states_cities' => array(
'from' => '/json/states+cities.json',
'to' => '/xml/states+cities.xml',
'singular' => 'state_city',
),
'countries_states' => array(
'from' => '/json/countries+states.json',
'to' => '/xml/countries+states.xml',
'singular' => 'country_state',
),
'countries_cities' => array(
'from' => '/json/countries+cities.json',
'to' => '/xml/countries+cities.xml',
'singular' => 'country_city',
),
'countries_states_cities' => array(
'from' => '/json/countries+states+cities.json',
'to' => '/xml/countries+states+cities.xml',
'singular' => 'country_state_city',
),
)
);

foreach ($files as $root => $v) :
Expand Down
22 changes: 1 addition & 21 deletions scripts/export_yaml.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,27 +31,7 @@
'from' => '/json/cities.json',
'to' => '/yml/cities.yml',
'singular' => 'city',
),
'states_cities' => array(
'from' => '/json/states+cities.json',
'to' => '/yml/states+cities.yml',
'singular' => 'state_city',
),
'countries_states' => array(
'from' => '/json/countries+states.json',
'to' => '/yml/countries+states.yml',
'singular' => 'country_state',
),
'countries_cities' => array(
'from' => '/json/countries+cities.json',
'to' => '/yml/countries+cities.yml',
'singular' => 'country_city',
),
'countries_states_cities' => array(
'from' => '/json/countries+states+cities.json',
'to' => '/yml/countries+states+cities.yml',
'singular' => 'country_state_city',
),
)
);

foreach ($files as $root => $v) :
Expand Down
Binary file removed sqlite/countries+cities.sqlite3
Binary file not shown.
Binary file removed sqlite/countries+states.sqlite3
Binary file not shown.
Binary file removed sqlite/states+cities.sqlite3
Binary file not shown.
Loading

0 comments on commit bd5af89

Please sign in to comment.