make sure old data gets deleted on place type change

When changing from some other place type to place=postcode
make sure that the old place type entry in the place table
is deleted.
This commit is contained in:
Sarah Hoffmann
2021-06-18 10:58:41 +02:00
parent 457982e1d2
commit e7b4fc70e7
2 changed files with 20 additions and 7 deletions

View File

@@ -84,6 +84,9 @@ Feature: Update of postcode
Then placex contains
| object | addr+housenumber | geometry |
| N34 | 1 | country:de|
And place contains exactly
| object | class | type |
| N34 | place | house |
When updating postcodes
Then location_postcode contains exactly
| country | postcode | geometry |
@@ -104,3 +107,13 @@ Feature: Update of postcode
| osm | class | type | addr+postcode | geometry |
| N34 | place | postcode | 01982 | country:de |
Then placex has no entry for N34
And place contains exactly
| object | class | type |
| N34 | place | postcode |
When updating postcodes
Then location_postcode contains exactly
| country | postcode | geometry |
| de | 01982 | country:de |
And word contains
| word | class | type |
| 01982 | place | postcode |