Skip to content

Commit

Permalink
specify unique cols in the conflict handler
Browse files Browse the repository at this point in the history
  • Loading branch information
christeredvartsen committed Feb 20, 2024
1 parent 1129b70 commit 7d4f140
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion internal/database/gensql/reconciler_states.sql.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion internal/database/queries/reconciler_states.sql
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ INSERT INTO reconciler_states (
@team_slug,
@value
)
ON CONFLICT DO
ON CONFLICT (reconciler_name, team_slug) DO
UPDATE SET value = EXCLUDED.value
RETURNING *;

Expand Down

0 comments on commit 7d4f140

Please sign in to comment.