Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
bendanzhentan committed Mar 3, 2024
1 parent 6b42e0f commit bce614a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion cmd/bot/run.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,10 @@ func RunCommand(ctx *cli.Context) error {
if err != nil {
return fmt.Errorf("failed to connect database: %w", err)
}
db.Delete(&core.L2ScannedBlock{})

_ = db.Exec("drop table l2_scanned_blocks")
_ = db.Exec("drop table _withdrawal_initiated_logs")

err = db.AutoMigrate(&core.L2ScannedBlock{})
if err != nil {
return fmt.Errorf("failed to migrate l2_scanned_blocks: %w", err)
Expand Down

0 comments on commit bce614a

Please sign in to comment.