X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/745e52b798d82f93f3c7c7f8608f986330aa12e0..be47cd2549da482f3a408307eee8bfe7967cff25:/sql/tables.sql diff --git a/sql/tables.sql b/sql/tables.sql index 949dc6ff..e2960aea 100644 --- a/sql/tables.sql +++ b/sql/tables.sql @@ -69,6 +69,15 @@ CREATE TABLE location_area ( CREATE TABLE location_area_large () INHERITS (location_area); +DROP TABLE IF EXISTS location_area_country; +CREATE TABLE location_area_country ( + place_id BIGINT, + country_code varchar(2), + geometry GEOMETRY(Geometry, 4326) + ) {ts:address-data}; +CREATE INDEX idx_location_area_country_geometry ON location_area_country USING GIST (geometry) {ts:address-index}; + + drop table IF EXISTS location_property CASCADE; CREATE TABLE location_property ( place_id BIGINT,