mirror of
https://github.com/pressly/goose.git
synced 2025-07-15 00:28:10 +00:00
status: ensure that the version table exists
This commit is contained in:
parent
c1320a5e81
commit
9140de5045
@ -41,6 +41,11 @@ func statusRun(cmd *Command, args ...string) {
|
||||
}
|
||||
defer db.Close()
|
||||
|
||||
// must ensure that the version table exists if we're running on a pristine DB
|
||||
if _, e := ensureDBVersion(db); e != nil {
|
||||
log.Fatal(e)
|
||||
}
|
||||
|
||||
fmt.Printf("goose: status for environment '%v'\n", conf.Env)
|
||||
fmt.Println(" Applied At Migration")
|
||||
fmt.Println(" =======================================")
|
||||
|
Loading…
x
Reference in New Issue
Block a user