diff --git a/src/commands/MigrationShowCommand.ts b/src/commands/MigrationShowCommand.ts index aa208b18e2..0ca11840cf 100644 --- a/src/commands/MigrationShowCommand.ts +++ b/src/commands/MigrationShowCommand.ts @@ -43,11 +43,10 @@ export class MigrationShowCommand implements yargs.CommandModule { logging: ["query", "error", "schema"] }); connection = await createConnection(connectionOptions); - const unappliedMigrations = await connection.showMigrations(); + await connection.showMigrations(); await connection.close(); - // return error code if there are unapplied migrations for CI - process.exit(unappliedMigrations ? 1 : 0); + process.exit(0); } catch (err) { if (connection) await (connection as Connection).close();