Skip to content

Commit

Permalink
Add better migration messages (#16)
Browse files Browse the repository at this point in the history
  • Loading branch information
MicroFish91 authored Oct 9, 2024
1 parent 719e746 commit 59e3ac9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/migrate/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ func main() {
if err := m.Up(); err != nil {
log.Fatal(err)
}
fmt.Printf("successfully ran up migration")
fmt.Printf("successfully ran up migration on db \"%s\"", config.Env.DbName)
} else if cmd == "down" {
if config.Env.AppEnv == "production" {
log.Fatal("blocking down migrations for prod")
Expand All @@ -44,6 +44,6 @@ func main() {
if err := m.Down(); err != nil {
log.Fatal(err)
}
fmt.Printf("successfully ran down migration")
fmt.Printf("successfully ran down migration on db \"%s\"", config.Env.DbName)
}
}

0 comments on commit 59e3ac9

Please sign in to comment.