mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2026-09-04 17:46:34 +02:00
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