Skip to content

Commit

Permalink
fix(database): merge migrations fix
Browse files Browse the repository at this point in the history
  • Loading branch information
lukewhrit committed Jun 23, 2024
2 parents 465d44f + d37ac6d commit 510c4db
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions cmd/spirit/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,12 @@ func main() {
Msg("Could not connect to database")
}

if err := pg.Migrate(context.Background()); err != nil {
log.Fatal().
Err(err).
Msg("Failed migrations; Could not create DOCUMENTS tables.")
}

m := server.NewServer(&config.Config, pg)

m.MountMiddleware()
Expand Down

0 comments on commit 510c4db

Please sign in to comment.