feat(core): Print the name of the migration that cannot be reverted when using n8n db:revert (#9473)
This commit is contained in:
@@ -190,9 +190,7 @@ export const wrapMigration = (migration: Migration) => {
|
||||
},
|
||||
});
|
||||
} else {
|
||||
throw new ApplicationError(
|
||||
'At least on migration is missing the method `up`. Make sure all migrations are valid.',
|
||||
);
|
||||
throw new ApplicationError(`Migration "${migration.name}" is missing the method \`up\`.`);
|
||||
}
|
||||
if (down) {
|
||||
Object.assign(migration.prototype, {
|
||||
|
||||
Reference in New Issue
Block a user