Add database setup scripts

This commit is contained in:
Logan Williams
2023-06-13 13:53:20 +02:00
parent c2d78c71c2
commit 63e3387e29
5 changed files with 219 additions and 0 deletions

6
database/views.sql Normal file
View File

@@ -0,0 +1,6 @@
CREATE VIEW planet_osm AS
SELECT "osm_id", "tags", "way" FROM planet_osm_point
UNION ALL
SELECT "osm_id", "tags", "way" FROM planet_osm_line
UNION ALL
SELECT "osm_id", "tags", "way" FROM planet_osm_polygon;