Skip to content

Commit

Permalink
fix: allow conflicting artefact uploads (#2370)
Browse files Browse the repository at this point in the history
  • Loading branch information
alecthomas authored Aug 15, 2024
1 parent df046cd commit 6e159a3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions backend/controller/sql/queries.sql
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ WHERE deployment_id = $1;
-- Create a new artefact and return the artefact ID.
INSERT INTO artefacts (digest, content)
VALUES ($1, $2)
ON CONFLICT (digest) DO NOTHING
RETURNING id;

-- name: AssociateArtefactWithDeployment :exec
Expand Down
1 change: 1 addition & 0 deletions backend/controller/sql/queries.sql.go

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

0 comments on commit 6e159a3

Please sign in to comment.