From 415d3bbe481e23491f369c813a415fba8cb8d54d Mon Sep 17 00:00:00 2001 From: Chris Date: Sat, 17 Aug 2019 16:09:34 -0400 Subject: [PATCH] Bump version numbers in Migration025 --- repo/migrations/Migration025.go | 8 ++++---- repo/migrations/Migration025_test.go | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) 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) } }