good morning!!!!

Skip to content
Snippets Groups Projects
Unverified Commit a5f4c721 authored by Alex Sharov's avatar Alex Sharov Committed by GitHub
Browse files

fix lost migrations (#3661)

parent 0b2ce6f8
No related branches found
No related tags found
No related merge requests found
...@@ -156,6 +156,16 @@ func (m *Migrator) Apply(db kv.RwDB, datadir string) error { ...@@ -156,6 +156,16 @@ func (m *Migrator) Apply(db kv.RwDB, datadir string) error {
} }
var applied map[string][]byte var applied map[string][]byte
if err := db.View(context.Background(), func(tx kv.Tx) error {
var err error
applied, err = AppliedMigrations(tx, false)
if err != nil {
return fmt.Errorf("reading applied migrations: %w", err)
}
return nil
}); err != nil {
return err
}
if err := m.VerifyVersion(db); err != nil { if err := m.VerifyVersion(db); err != nil {
return err return err
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment