]> git.openstreetmap.org Git - nominatim.git/blob - lib-sql/tables/import_reports.sql
prepare release 5.2.0.post11
[nominatim.git] / lib-sql / tables / import_reports.sql
1 -- SPDX-License-Identifier: GPL-2.0-only
2 --
3 -- This file is part of Nominatim. (https://nominatim.org)
4 --
5 -- Copyright (C) 2026 by the Nominatim developer community.
6 -- For a full list of authors see the git log.
7
8 DROP TABLE IF EXISTS import_polygon_error;
9 CREATE TABLE import_polygon_error (
10   osm_id BIGINT,
11   osm_type CHAR(1),
12   class TEXT NOT NULL,
13   type TEXT NOT NULL,
14   name HSTORE,
15   country_code varchar(2),
16   updated timestamp,
17   errormessage text,
18   prevgeometry GEOMETRY(Geometry, 4326),
19   newgeometry GEOMETRY(Geometry, 4326)
20   );
21
22 CREATE INDEX idx_import_polygon_error_osmid ON import_polygon_error
23   USING BTREE (osm_type, osm_id);
24
25
26 DROP TABLE IF EXISTS import_polygon_delete;
27 CREATE TABLE import_polygon_delete (
28   osm_id BIGINT,
29   osm_type CHAR(1),
30   class TEXT NOT NULL,
31   type TEXT NOT NULL
32   );
33
34 CREATE INDEX idx_import_polygon_delete_osmid ON import_polygon_delete
35   USING BTREE (osm_type, osm_id);