From 3a19a6f654ef3672b65339f05924c33b979afb12 Mon Sep 17 00:00:00 2001 From: Rory Doak Date: Tue, 25 Jun 2024 14:08:28 +0100 Subject: [PATCH] switch boundary url and json --- scripts/seed-database/write/team_settings.sql | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/scripts/seed-database/write/team_settings.sql b/scripts/seed-database/write/team_settings.sql index 3f79169370..1278dac0aa 100644 --- a/scripts/seed-database/write/team_settings.sql +++ b/scripts/seed-database/write/team_settings.sql @@ -10,14 +10,14 @@ CREATE TEMPORARY TABLE sync_team_settings ( email_reply_to_id text, external_planning_site_url text, external_planning_site_name text, - boundary_json jsonb, - boundary_url text + boundary_url text, + boundary_json jsonb ); \copy sync_team_settings FROM '/tmp/team_settings.csv' WITH (FORMAT csv, DELIMITER ';'); INSERT INTO - team_themes ( + team_settings ( id, team_id, reference_code, @@ -28,8 +28,8 @@ INSERT INTO email_reply_to_id, external_planning_site_url, external_planning_site_name, - boundary_json, - boundary_url + boundary_url, + boundary_json ) SELECT id, @@ -42,8 +42,8 @@ SELECT email_reply_to_id, external_planning_site_url, external_planning_site_name, - boundary_json, - boundary_url + boundary_url, + boundary_json FROM sync_team_settings ON CONFLICT (id) DO UPDATE @@ -57,8 +57,8 @@ SET email_reply_to_id = EXCLUDED.email_reply_to_id, external_planning_site_url = EXCLUDED.external_planning_site_url, external_planning_site_name = EXCLUDED.external_planning_site_name, - boundary_json = EXCLUDED.boundary_json, - boundary_url = EXCLUDED.boundary_url; + boundary_url = EXCLUDED.boundary_url, + boundary_json = EXCLUDED.boundary_json; SELECT setval('team_settings_id_seq', max(id)) FROM