Skip to content

Commit

Permalink
fix: change on conflict clause order
Browse files Browse the repository at this point in the history
  • Loading branch information
yashmehrotra authored and moshloop committed Sep 11, 2024
1 parent a662432 commit 19e65f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion models/components.go
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,7 @@ func (c *Component) Save(db *gorm.DB) error {
}
err := db.Clauses(
clause.OnConflict{
Columns: []clause.Column{{Name: "topology_id"}, {Name: "name"}, {Name: "type"}, {Name: "parent_id"}},
Columns: []clause.Column{{Name: "topology_id"}, {Name: "type"}, {Name: "name"}, {Name: "parent_id"}},
UpdateAll: true,
},
clause.OnConflict{
Expand Down

0 comments on commit 19e65f8

Please sign in to comment.