]> git.openstreetmap.org Git - nominatim.git/blobdiff - sql/tables.sql
feat(export): added linked_place_id as an attribute to feature element
[nominatim.git] / sql / tables.sql
index 8d8ba9a75fe26748ba7e29de0efb3143ddb6693d..4a22a814feab17140a2af2b0f994fa9bfb0b1935 100644 (file)
@@ -62,6 +62,7 @@ CREATE TABLE location_area (
   rank_address SMALLINT NOT NULL,
   country_code VARCHAR(2),
   isguess BOOL,
+  postcode TEXT,
   centroid GEOMETRY(Point, 4326),
   geometry GEOMETRY(Geometry, 4326)
   );
@@ -211,6 +212,7 @@ CREATE TABLE location_postcode (
   geometry GEOMETRY(Geometry, 4326)
   );
 CREATE INDEX idx_postcode_geometry ON location_postcode USING GIST (geometry) {ts:address-index};
+GRANT SELECT ON location_postcode TO "{www-user}" ;
 
 CREATE TRIGGER location_postcode_before_update BEFORE UPDATE ON location_postcode
     FOR EACH ROW EXECUTE PROCEDURE postcode_update();
@@ -225,8 +227,8 @@ CREATE TABLE import_polygon_error (
   country_code varchar(2),
   updated timestamp,
   errormessage text,
-  prevgeometry GEOMTRY(Geometry, 4326),
-  newgeometry GEOMTRY(Geometry, 4326)
+  prevgeometry GEOMETRY(Geometry, 4326),
+  newgeometry GEOMETRY(Geometry, 4326)
   );
 CREATE INDEX idx_import_polygon_error_osmid ON import_polygon_error USING BTREE (osm_type, osm_id);
 GRANT SELECT ON import_polygon_error TO "{www-user}";