Feat: Improvements to the migrations CLI and workflow (#8060)
This commit is contained in:
@@ -170,13 +170,18 @@ function buildLocalCommands(cli, isLocalProject) {
|
||||
),
|
||||
})
|
||||
.command({
|
||||
command: `migrations [action]`,
|
||||
command: `migrations [action] [modules...]`,
|
||||
desc: `Manage migrations from the core and your own project`,
|
||||
builder: {
|
||||
action: {
|
||||
demand: true,
|
||||
description: "The action to perform on migrations",
|
||||
choices: ["run", "revert", "show"],
|
||||
},
|
||||
modules: {
|
||||
description: "Revert migrations for defined modules",
|
||||
demand: false,
|
||||
},
|
||||
},
|
||||
handler: handlerP(
|
||||
getCommandHandler(`migrate`, (args, cmd) => {
|
||||
|
||||
Reference in New Issue
Block a user