Skip to content

Commit

Permalink
fix: compare migration_history
Browse files Browse the repository at this point in the history
  • Loading branch information
boojack committed Jul 1, 2022
1 parent 5a1ea00 commit 565fe0c
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions store/db/db.go
Original file line number Diff line number Diff line change
Expand Up @@ -75,15 +75,15 @@ func (db *DB) Open() (err error) {
}
}

return err
}

func (db *DB) migrate() error {
err := db.compareMigrationHistory()
err = db.compareMigrationHistory()
if err != nil {
return fmt.Errorf("failed to compare migration history, err=%w", err)
}

return err
}

func (db *DB) migrate() error {
filenames, err := fs.Glob(migrationFS, fmt.Sprintf("%s/*.sql", "migration"))
if err != nil {
return err
Expand Down

0 comments on commit 565fe0c

Please sign in to comment.