From 9e998429e86c43441e183ce905585d51a59c5e93 Mon Sep 17 00:00:00 2001 From: artaasadi Date: Sun, 5 Jan 2025 01:44:06 +0100 Subject: [PATCH] fix: fix migrator --- jobs/post-install-job/job/migrations/compliance/populate.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jobs/post-install-job/job/migrations/compliance/populate.go b/jobs/post-install-job/job/migrations/compliance/populate.go index 9dbe129c7..0168dea41 100644 --- a/jobs/post-install-job/job/migrations/compliance/populate.go +++ b/jobs/post-install-job/job/migrations/compliance/populate.go @@ -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(¶m).Error if err != nil {