mirror of
https://github.com/TECHNOFAB11/dbmate.git
synced 2025-12-11 23:50:04 +01:00
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:
parent
f7a3390299
commit
256f92ad19
5 changed files with 143 additions and 4 deletions
7
main.go
7
main.go
|
|
@ -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",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue