Update ON CONFLICT with pipeline_refs primary key
This commit is contained in:
parent
89be2c4816
commit
32a86ace9f
|
@ -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;`
|
||||
|
||||
|
|
Loading…
Reference in New Issue