Skip to content

Commit

Permalink
Merge pull request #2357 from opengovern/fix-policy
Browse files Browse the repository at this point in the history
fix: fix migrator
  • Loading branch information
artaasadi authored Jan 5, 2025
2 parents f9b46c8 + 9e99842 commit 6fef65b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ func (m Migration) Run(ctx context.Context, conf config.MigratorConfig, logger *
}
for _, param := range obj.Parameters {
err = tx.Clauses(clause.OnConflict{
Columns: []clause.Column{{Name: "key"}, {Name: "query_id"}}, // key columns
Columns: []clause.Column{{Name: "key"}, {Name: "policy_id"}}, // key columns
DoNothing: true,
}).Create(&param).Error
if err != nil {
Expand Down

0 comments on commit 6fef65b

Please sign in to comment.