From 5c486cced57f3c33730711d5de7ffb9ea3c5a5c8 Mon Sep 17 00:00:00 2001 From: Rory Doak <138574807+RODO94@users.noreply.github.com> Date: Tue, 27 Aug 2024 13:35:44 +0100 Subject: [PATCH] fix: add submission_email to team_settings seed script (#3571) --- scripts/seed-database/write/team_settings.sql | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/scripts/seed-database/write/team_settings.sql b/scripts/seed-database/write/team_settings.sql index ad7d7ac281..fa9a7e7ca5 100644 --- a/scripts/seed-database/write/team_settings.sql +++ b/scripts/seed-database/write/team_settings.sql @@ -11,7 +11,8 @@ CREATE TEMPORARY TABLE sync_team_settings ( external_planning_site_url text, external_planning_site_name text, boundary_url text, - boundary_bbox jsonb + boundary_bbox jsonb, + submission_email text ); \copy sync_team_settings FROM '/tmp/team_settings.csv' WITH (FORMAT csv, DELIMITER ';'); @@ -29,7 +30,8 @@ INSERT INTO external_planning_site_url, external_planning_site_name, boundary_url, - boundary_bbox + boundary_bbox, + submission_email ) SELECT id, @@ -43,7 +45,8 @@ SELECT external_planning_site_url, external_planning_site_name, boundary_url, - boundary_bbox + boundary_bbox, + submission_email FROM sync_team_settings ON CONFLICT (id) DO UPDATE @@ -58,7 +61,8 @@ 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_bbox = EXCLUDED.boundary_bbox; + boundary_bbox = EXCLUDED.boundary_bbox, + submission_email = EXCLUDED.submission_email; SELECT setval('team_settings_id_seq', max(id)) FROM