Skip to content

Commit

Permalink
fix: allow global_urn to be updated on conflict
Browse files Browse the repository at this point in the history
  • Loading branch information
rahmatrhd committed Nov 24, 2023
1 parent ea9f402 commit dbeeefc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/store/postgres/model/resource.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ func (r *Resource) BeforeCreate(tx *gorm.DB) error {
{Name: "type"},
{Name: "urn"},
},
DoUpdates: clause.AssignmentColumns([]string{"name", "details", "updated_at", "is_deleted", "parent_id"}),
DoUpdates: clause.AssignmentColumns([]string{"name", "details", "updated_at", "is_deleted", "parent_id", "global_urn"}),
})

return nil
Expand Down

0 comments on commit dbeeefc

Please sign in to comment.