We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 465e425 commit 8231ce1Copy full SHA for 8231ce1
postgres/scripts/v1_to_v2/copy_projects_from_csv.sql
@@ -56,7 +56,8 @@ WHERE v1_projects.import_id = v1_imports.import_id;
56
57
-- Convert geometry to postgis geometry type.
58
UPDATE v1_projects
59
-SET geom = ST_Force2D(ST_Multi(ST_GeomFromKML(kml)));
+SET geom = ST_Force2D(ST_Multi(ST_GeomFromKML(kml)))
60
+WHERE kml IS NOT NULL;
61
62
-- Insert or update data of temp table to the permant table (projects)
63
-- Note that the special excluded table is used to reference values originally proposed for insertion
0 commit comments