fix: db:rollback and db:generate commands to cast module names to arrays (#9377)
FIXES: FRMW-2720
This commit is contained in:
@@ -207,6 +207,7 @@ function buildLocalCommands(cli, isLocalProject) {
|
|||||||
desc: "Rollback last batch of executed migrations for a given module",
|
desc: "Rollback last batch of executed migrations for a given module",
|
||||||
builder: {
|
builder: {
|
||||||
modules: {
|
modules: {
|
||||||
|
type: "array",
|
||||||
description: "Modules for which to rollback migrations",
|
description: "Modules for which to rollback migrations",
|
||||||
demand: true,
|
demand: true,
|
||||||
},
|
},
|
||||||
@@ -223,6 +224,7 @@ function buildLocalCommands(cli, isLocalProject) {
|
|||||||
desc: "Generate migrations for a given module",
|
desc: "Generate migrations for a given module",
|
||||||
builder: {
|
builder: {
|
||||||
modules: {
|
modules: {
|
||||||
|
type: "array",
|
||||||
description: "Modules for which to generate migration files",
|
description: "Modules for which to generate migration files",
|
||||||
demand: true,
|
demand: true,
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user