feat(cli): implement the "list" command for listing migration history and pending migrations

This commit is contained in:
Joakim Carlstein 2023-11-22 14:19:10 +01:00
parent e79dd4bca9
commit 53cdb23237
8 changed files with 199 additions and 38 deletions

View file

@ -46,7 +46,7 @@ export class MigrationHistoryError extends EmigrateError {
message: string,
public entry: MigrationHistoryEntry,
) {
super('ERR_MIGRATION_HISTORY', message);
super('ERR_MIGRATION_HISTORY', message, { cause: entry.error });
}
}