From fcf0f18e2ee85493a9be56b84e90055a8b8db02c Mon Sep 17 00:00:00 2001 From: Rory Doak <138574807+RODO94@users.noreply.github.com> Date: Sun, 7 Jul 2024 10:12:12 +0100 Subject: [PATCH] feat: adding scripts for new ``boundary_bbox`` column in ``team_settings`` (#3379) --- scripts/seed-database/write/team_settings.sql | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/seed-database/write/team_settings.sql b/scripts/seed-database/write/team_settings.sql index 1278dac0aa..ad7d7ac281 100644 --- a/scripts/seed-database/write/team_settings.sql +++ b/scripts/seed-database/write/team_settings.sql @@ -11,7 +11,7 @@ CREATE TEMPORARY TABLE sync_team_settings ( external_planning_site_url text, external_planning_site_name text, boundary_url text, - boundary_json jsonb + boundary_bbox jsonb ); \copy sync_team_settings FROM '/tmp/team_settings.csv' WITH (FORMAT csv, DELIMITER ';'); @@ -29,7 +29,7 @@ INSERT INTO external_planning_site_url, external_planning_site_name, boundary_url, - boundary_json + boundary_bbox ) SELECT id, @@ -43,7 +43,7 @@ SELECT external_planning_site_url, external_planning_site_name, boundary_url, - boundary_json + boundary_bbox FROM sync_team_settings ON CONFLICT (id) DO UPDATE @@ -58,7 +58,7 @@ SET external_planning_site_url = EXCLUDED.external_planning_site_url, external_planning_site_name = EXCLUDED.external_planning_site_name, boundary_url = EXCLUDED.boundary_url, - boundary_json = EXCLUDED.boundary_json; + boundary_bbox = EXCLUDED.boundary_bbox; SELECT setval('team_settings_id_seq', max(id)) FROM