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

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

No files matched your search

+6 -1
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) => {