Skip to content

Commit

Permalink
remove totalArea field from copy csv sql script
Browse files Browse the repository at this point in the history
  • Loading branch information
alexeh committed May 8, 2024
1 parent fd03a09 commit 063721c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion data/gadm_importer/populate_geo_and_admin_regions.sql
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ CREATE EXTENSION IF NOT EXISTS ltree;
-- 1. Upsert from gadm to geo_region converting geometry to H3
TRUNCATE TABLE geo_region CASCADE;

\copy geo_region FROM 'geo_region.csv' WITH (FORMAT csv, HEADER, FORCE_NULL ("h3Compact", "h3Flat", "totalArea"));
\copy geo_region FROM 'geo_region.csv' WITH (FORMAT csv, HEADER, FORCE_NULL ("h3Compact", "h3Flat"));

-- 2. Insert into admin_region referencing geo_region
BEGIN;
Expand Down

0 comments on commit 063721c

Please sign in to comment.