fix semicolon issue
This commit is contained in:
parent
c11d06a3dc
commit
2c6051682b
@ -14,18 +14,17 @@
|
||||
# if geometry.TOID not in builings
|
||||
# Add TOID to temp table called new_geometries
|
||||
|
||||
psql -c "CREATE TABLE new_geometries (
|
||||
geometry_id serial PRIMARY KEY,
|
||||
source_id varchar(30)
|
||||
);"
|
||||
# psql -c "CREATE TABLE new_geometries (
|
||||
# geometry_id serial PRIMARY KEY,
|
||||
# source_id varchar(30)
|
||||
# );"
|
||||
psql -c "WITH new_geometries AS (
|
||||
INSERT INTO buildings ( geometry_id, ref_toid )
|
||||
SELECT geometry_id, source_id
|
||||
FROM geometries
|
||||
ON CONFLICT ( ref_toid )
|
||||
DO NOTHING RETURNING *
|
||||
)
|
||||
;"
|
||||
);"
|
||||
|
||||
# for building in buildings
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user