Update ON CONFLICT with pipeline_refs primary key
This commit is contained in:
+1
-1
@@ -437,7 +437,7 @@ func (db *Database) UpdatePipelineRefs(pipelineId uuid.UUID, refsMap map[string]
|
||||
query := `
|
||||
INSERT INTO pipeline_refs(name, pipeline_id, hash)
|
||||
VALUES($1, $2, $3)
|
||||
ON CONFLICT (name)
|
||||
ON CONFLICT (name, pipeline_id)
|
||||
DO
|
||||
UPDATE SET hash=$3;`
|
||||
|
||||
|
||||
Reference in New Issue
Block a user