Skip to content

Commit

Permalink
fix: fix migrator
Browse files Browse the repository at this point in the history
  • Loading branch information
artaasadi committed Jan 5, 2025
1 parent 67ca5c4 commit 9e99842
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 9e99842

Please sign in to comment.