Hello Marc,
thanks for your quick answer.
marc wrote:
You could help us sort out the missing or wrong geonameIds in the countryInfo file.
One simple problem on countryinfo-Table:
Code:
SELECT * FROM countryinfo WHERE geonameid=0;
Brings up 17 tupels with the following iso_alpha2:
Code:
AQ
AS
AX
BV
FO
GF
GU
HM
MP
MQ
NC
PM
RE
SJ
UM
VI
WF
If these countries aren't available on the geoname-table, I would suggest to create a dummy-entry with "geonameid=0".
Code:
INSERT INTO geoname (geonameid) VALUES (0);
After this modification, the foreign-key on countryinfo is set up correctly:
Code:
ALTER TABLE ONLY countryinfo
ADD CONSTRAINT fk_geonameid FOREIGN KEY (geonameid) REFERENCES geoname(geonameid);
On the alternatename-table the problem can't be fixed so easy. I'll try to find out the corrupted tupels and will tell them to you on this thread.
Greetz
Andy