Feat: Improvements to the migrations CLI and workflow (#8060)
This commit is contained in:
1 parent
bb0303cd6a
commit
45c573b03a
10 files changed
+257
-144
No files matched your search
@@ -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