X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/28041cbbd923dae24b96e9d2790c17df4d4c80e0..9e54d1d6eb3e418c13ea090eeee4c9f9ee30b55a:/sql/tables.sql?ds=inline diff --git a/sql/tables.sql b/sql/tables.sql index 75129ce8..8cc2c831 100644 --- a/sql/tables.sql +++ b/sql/tables.sql @@ -95,6 +95,7 @@ CREATE TABLE location_property_osmline ( endnumber INTEGER, interpolationtype TEXT, street TEXT, + addr_place TEXT, postcode TEXT, calculated_country_code VARCHAR(2), geometry_sector INTEGER, @@ -166,6 +167,8 @@ GRANT SELECT on location_area to "{www-user}" ; -- insert creates the location tables, creates location indexes if indexed == true CREATE TRIGGER placex_before_insert BEFORE INSERT ON placex FOR EACH ROW EXECUTE PROCEDURE placex_insert(); +CREATE TRIGGER osmline_before_insert BEFORE INSERT ON location_property_osmline + FOR EACH ROW EXECUTE PROCEDURE osmline_insert(); -- update insert creates the location tables CREATE TRIGGER placex_before_update BEFORE UPDATE ON placex