The content at http://download.geonames.org/export/dump/featureCodes.txt appears to have FIVE character codes, whereas the module schema has varchar(4). This results in truncation, and consequently duplicate entry errors. When updating the schema, please provide a hook_update also.

Comments

lyricnz’s picture

http://download.geonames.org/export/dump/readme.txt describes the feature code as being varchar(10), so that should be used.

Also, some of the names are 45 characters (current length is 40).

lyricnz’s picture

Status: Active » Fixed

Fixed in dev.

lyricnz’s picture

Applied to 6.x-1.x-dev

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.