feat(medusa-cli): Allow to revert migrations from the CLI (#1353)
This commit is contained in:
committed by
GitHub
parent
b478b10438
commit
012513b6a1
@@ -166,11 +166,11 @@ function buildLocalCommands(cli, isLocalProject) {
|
||||
})
|
||||
.command({
|
||||
command: `migrations [action]`,
|
||||
desc: `Migrate the database to the most recent version.`,
|
||||
desc: `Manage migrations from the core and your own project`,
|
||||
builder: {
|
||||
action: {
|
||||
demand: true,
|
||||
choices: ["run", "show"],
|
||||
choices: ["run", "revert", "show"],
|
||||
},
|
||||
},
|
||||
handler: handlerP(
|
||||
|
||||
Reference in New Issue
Block a user