fix semicolon issue

This commit is contained in:
Ed Chalstrey 2022-04-08 16:06:26 +01:00
parent c11d06a3dc
commit 2c6051682b

View File

@ -14,18 +14,17 @@
# if geometry.TOID not in builings # if geometry.TOID not in builings
# Add TOID to temp table called new_geometries # Add TOID to temp table called new_geometries
psql -c "CREATE TABLE new_geometries ( # psql -c "CREATE TABLE new_geometries (
geometry_id serial PRIMARY KEY, # geometry_id serial PRIMARY KEY,
source_id varchar(30) # source_id varchar(30)
);" # );"
psql -c "WITH new_geometries AS ( psql -c "WITH new_geometries AS (
INSERT INTO buildings ( geometry_id, ref_toid ) INSERT INTO buildings ( geometry_id, ref_toid )
SELECT geometry_id, source_id SELECT geometry_id, source_id
FROM geometries FROM geometries
ON CONFLICT ( ref_toid ) ON CONFLICT ( ref_toid )
DO NOTHING RETURNING * DO NOTHING RETURNING *
) );"
;"
# for building in buildings # for building in buildings