Add status command (#120)

Add new command to list applied and pending migrations.

Closes #28
Closes #32
Closes #66
Closes #120
This commit is contained in:
fcarletti 2020-02-27 23:24:11 -06:00 committed by Adrian Macneil
parent f7a3390299
commit 256f92ad19
5 changed files with 143 additions and 4 deletions

View file

@ -102,6 +102,13 @@ func NewApp() *cli.App {
return db.Rollback()
}),
},
{
Name: "status",
Usage: "List applied and pending migrations",
Action: action(func(db *dbmate.DB, c *cli.Context) error {
return db.Status()
}),
},
{
Name: "dump",
Usage: "Write the database schema to disk",