Skip to content

Commit

Permalink
switch boundary url and json
Browse files Browse the repository at this point in the history
  • Loading branch information
RODO94 committed Jun 25, 2024
1 parent 48e84b5 commit 3a19a6f
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions scripts/seed-database/write/team_settings.sql
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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,
Expand All @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 3a19a6f

Please sign in to comment.