From 123a4bf5903b6f6967b6def43bf419bd00e79668 Mon Sep 17 00:00:00 2001 From: Eli Ribble Date: Mon, 16 Feb 2026 15:47:39 +0000 Subject: [PATCH] Fix SRID of pool uploads This makes our calculations correct when checking if an address is in the district. --- db/migrations/00064_csv_pool_geom_srid.sql | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 db/migrations/00064_csv_pool_geom_srid.sql diff --git a/db/migrations/00064_csv_pool_geom_srid.sql b/db/migrations/00064_csv_pool_geom_srid.sql new file mode 100644 index 00000000..d1501924 --- /dev/null +++ b/db/migrations/00064_csv_pool_geom_srid.sql @@ -0,0 +1,6 @@ +-- +goose Up +ALTER TABLE fileupload.pool DROP COLUMN geom; +ALTER TABLE fileupload.pool ADD COLUMN geom geometry(Point, 4326); +-- +goose Down +ALTER TABLE fileupload.pool DROP COLUMN geom; +ALTER TABLE fileupload.pool ADD COLUMN geom geometry(Point, 3857);