Skip to content

Commit

Permalink
fix(events): register events index db migration v4
Browse files Browse the repository at this point in the history
  • Loading branch information
rvagg committed Apr 30, 2024
1 parent cee77aa commit 46992f0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions chain/events/filter/index.go
Original file line number Diff line number Diff line change
Expand Up @@ -356,6 +356,10 @@ func (ei *EventIndex) migrateToVersion4(ctx context.Context) error {
}
}

if _, err = tx.Exec("INSERT OR IGNORE INTO _meta (version) VALUES (4)"); err != nil {
return xerrors.Errorf("increment _meta version: %w", err)
}

err = tx.Commit()
if err != nil {
return xerrors.Errorf("commit transaction: %w", err)
Expand Down

0 comments on commit 46992f0

Please sign in to comment.