Skip to content
This repository has been archived by the owner on Mar 28, 2023. It is now read-only.

Commit

Permalink
Merge pull request #1680 from OpenBazaar/repover
Browse files Browse the repository at this point in the history
Bump version numbers in Migration025
  • Loading branch information
placer14 authored Aug 18, 2019
2 parents 5e039d9 + 415d3bb commit 3fd0924
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions repo/migrations/Migration025.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand All @@ -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
}
4 changes: 2 additions & 2 deletions repo/migrations/Migration025_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}

Expand All @@ -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)
}
}

0 comments on commit 3fd0924

Please sign in to comment.