diff --git a/repo/migrations/Migration025.go b/repo/migrations/Migration025.go index 7881f2cf25..38b105d5a9 100644 --- a/repo/migrations/Migration025.go +++ b/repo/migrations/Migration025.go @@ -38,8 +38,8 @@ func (Migration025) Up(repoPath, databasePassword string, testnetEnabled bool) e if err = tx.Commit(); err != nil { return err } - if err := writeRepoVer(repoPath, 25); err != nil { - return fmt.Errorf("bumping repover to 25: %s", err.Error()) + if err := writeRepoVer(repoPath, 26); err != nil { + return fmt.Errorf("bumping repover to 26: %s", err.Error()) } return nil } @@ -65,8 +65,8 @@ func (Migration025) Down(repoPath, databasePassword string, testnetEnabled bool) if err = tx.Commit(); err != nil { return err } - if err := writeRepoVer(repoPath, 24); err != nil { - return fmt.Errorf("dropping repover to 24: %s", err.Error()) + if err := writeRepoVer(repoPath, 25); err != nil { + return fmt.Errorf("dropping repover to 25: %s", err.Error()) } return nil } diff --git a/repo/migrations/Migration025_test.go b/repo/migrations/Migration025_test.go index 3834fafa34..0fb401eca5 100644 --- a/repo/migrations/Migration025_test.go +++ b/repo/migrations/Migration025_test.go @@ -48,7 +48,7 @@ func TestMigration025(t *testing.T) { } // assert repo version reverted - if err = appSchema.VerifySchemaVersion("25"); err != nil { + if err = appSchema.VerifySchemaVersion("26"); err != nil { t.Fatal(err) } @@ -62,7 +62,7 @@ func TestMigration025(t *testing.T) { } // assert repo version reverted - if err = appSchema.VerifySchemaVersion("24"); err != nil { + if err = appSchema.VerifySchemaVersion("25"); err != nil { t.Fatal(err) } }