mirror of
https://github.com/osm-search/Nominatim.git
synced 2026-02-26 11:08:13 +00:00
update admin_level when modifying place
This commit is contained in:
@@ -2230,6 +2230,7 @@ BEGIN
|
|||||||
postcode = NEW.postcode,
|
postcode = NEW.postcode,
|
||||||
country_code = NEW.country_code,
|
country_code = NEW.country_code,
|
||||||
extratags = NEW.extratags,
|
extratags = NEW.extratags,
|
||||||
|
admin_level = NEW.admin_level,
|
||||||
geometry = NEW.geometry
|
geometry = NEW.geometry
|
||||||
where osm_type = NEW.osm_type and osm_id = NEW.osm_id and class = NEW.class and type = NEW.type;
|
where osm_type = NEW.osm_type and osm_id = NEW.osm_id and class = NEW.class and type = NEW.type;
|
||||||
|
|
||||||
@@ -2243,6 +2244,7 @@ BEGIN
|
|||||||
country_code = NEW.country_code,
|
country_code = NEW.country_code,
|
||||||
parent_place_id = null,
|
parent_place_id = null,
|
||||||
extratags = NEW.extratags,
|
extratags = NEW.extratags,
|
||||||
|
admin_level = NEW.admin_level,
|
||||||
indexed_status = 2,
|
indexed_status = 2,
|
||||||
geometry = NEW.geometry
|
geometry = NEW.geometry
|
||||||
where place_id = existingplacex.place_id;
|
where place_id = existingplacex.place_id;
|
||||||
|
|||||||
Reference in New Issue
Block a user