mirror of
https://github.com/osm-search/Nominatim.git
synced 2026-02-16 15:47:58 +00:00
Remove postcodes also from word table when they no longer exist
Also adds tests for postcode updates. Fixes #1273.
This commit is contained in:
@@ -125,3 +125,15 @@ Feature: Import of postcodes
|
||||
Then placex contains
|
||||
| object | postcode |
|
||||
| W93 | 112 DE 34 |
|
||||
|
||||
Scenario: Postcodes are added to the postcode and word table
|
||||
Given the places
|
||||
| osm | class | type | addr+postcode | addr+housenumber | geometry |
|
||||
| N34 | place | house | 01982 | 111 |country:de |
|
||||
When importing
|
||||
Then location_postcode contains exactly
|
||||
| country | postcode | geometry |
|
||||
| de | 01982 | country:de |
|
||||
And word contains
|
||||
| word | class | type |
|
||||
| 01982 | place | postcode |
|
||||
|
||||
Reference in New Issue
Block a user