Feat: Improvements to the migrations CLI and workflow (#8060)

This commit is contained in:
Harminder Virk
2024-07-11 16:52:34 +05:30
committed by GitHub
parent bb0303cd6a
commit 45c573b03a
10 changed files with 257 additions and 144 deletions

View File

@@ -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) => {