Skip to content

Commit

Permalink
chore: Sync new team_themes columns from production
Browse files Browse the repository at this point in the history
  • Loading branch information
DafyddLlyr committed Jan 15, 2024
1 parent f34adf1 commit 1b85380
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions scripts/seed-database/write/team_themes.sql
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ CREATE TEMPORARY TABLE sync_team_themes (
id integer,
team_id integer,
primary_colour text,
secondary_colour text,
action_colour text,
link_colour text,
logo text,
favicon text
);
Expand All @@ -17,15 +18,17 @@ INSERT INTO
id,
team_id,
primary_colour,
-- secondary_colour,
action_colour,
link_colour,
logo,
favicon
)
SELECT
id,
team_id,
primary_colour,
-- secondary_colour,
action_colour,
link_colour,
logo,
favicon
FROM
Expand All @@ -34,7 +37,8 @@ UPDATE
SET
team_id = EXCLUDED.team_id,
primary_colour = EXCLUDED.primary_colour,
-- secondary_colour = EXCLUDED.secondary_colour,
action_colour = EXCLUDED.action_colour,
link_colour = EXCLUDED.link_colour,
logo = EXCLUDED.logo,
favicon = EXCLUDED.favicon;
SELECT
Expand Down

0 comments on commit 1b85380

Please sign in to comment.