diff --git a/models/topology.go b/models/topology.go index b799d721..7416ea1f 100644 --- a/models/topology.go +++ b/models/topology.go @@ -33,7 +33,7 @@ func (t Topology) OnConflictClause() clause.OnConflict { Exprs: []clause.Expression{ clause.And( clause.Eq{Column: "deleted_at"}, - clause.Eq{Column: "agent_id", Value: uuid.Nil.String()}, + clause.Expr{SQL: "agent_id = '00000000-0000-0000-0000-000000000000'::uuid", WithoutParentheses: true}, ), }, },