Skip to content

Commit

Permalink
fix(cli): expose missing migration:check command (#4388)
Browse files Browse the repository at this point in the history
  • Loading branch information
stefansundin committed May 26, 2023
1 parent 3fbda09 commit 79e128e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions packages/cli/src/CLIConfigurator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ export class CLIConfigurator {
.command(MigrationCommandFactory.create('up'))
.command(MigrationCommandFactory.create('down'))
.command(MigrationCommandFactory.create('list'))
.command(MigrationCommandFactory.create('check'))
.command(MigrationCommandFactory.create('pending'))
.command(MigrationCommandFactory.create('fresh'))
.command(new DebugCommand())
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/src/commands/MigrationCommandFactory.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ export class MigrationCommandFactory {
type: 'string',
desc: 'Sets path to directory where to save entities',
});
args.option('name', {
args.option('n', {
alias: 'name',
type: 'string',
desc: 'Specify custom name for the file',
Expand Down
1 change: 1 addition & 0 deletions tests/features/cli/CLIHelper.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ describe('CLIHelper', () => {
'migration:up',
'migration:down',
'migration:list',
'migration:check',
'migration:pending',
'migration:fresh',
'debug',
Expand Down

0 comments on commit 79e128e

Please sign in to comment.