Merge pull request #107 from CartoDB/1236-iri/admin0empty

Avoids getting data with incorrect naming from NE source
This commit is contained in:
Carla 2014-11-24 13:53:50 +02:00
commit 247b4967cc

View File

@ -79,7 +79,8 @@ INSERT INTO admin0_synonyms (name, rank, adm0_a3)
SELECT
iso_a2, 8, adm0_a3
FROM
ne_admin0_v3;
ne_admin0_v3
WHERE iso_a2 NOT LIKE '-99';
-- insert subunit as name with a rank = 9
INSERT INTO admin0_synonyms (name, rank, adm0_a3)