Skip to content

Commit 25647a9

Browse files
authored
fix: don't drop index (#3765)
1 parent a928781 commit 25647a9

1 file changed

Lines changed: 0 additions & 4 deletions

File tree

cmd/hatchet-migrate/migrate/migrations/20260424190713_v1_0_99.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -491,10 +491,6 @@ func up20260424190713(ctx context.Context, db *sql.DB) error {
491491
eg := &errgroup.Group{}
492492

493493
eg.Go(func() error {
494-
if _, err := db.ExecContext(ctx, `DROP INDEX IF EXISTS ix_v1_runs_olap_tenant_id`); err != nil {
495-
return fmt.Errorf("drop old index on %s: %w", v1RunsOlapTable, err)
496-
}
497-
498494
if _, err := db.ExecContext(ctx, buildCreateMirrorTableSQL(v1RunsOlapTable, v1RunsOlapTable+"_new", v1RunsOlapNewColDefs)); err != nil {
499495
return fmt.Errorf("create %s_new: %w", v1RunsOlapTable, err)
500496
}

0 commit comments

Comments
 (0)