chore(server): ignore never applied rolled back error (#12703)

closes #12701

<!-- This is an auto-generated comment: release notes by coderabbit.ai -->

## Summary by CodeRabbit

- **Bug Fixes**
  - Improved error handling during migration rollbacks to prevent unnecessary errors when migrations were never applied.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
This commit is contained in:
fengmk2
2025-06-04 11:37:32 +00:00
parent 063072457c
commit d219c92e98

View File

@@ -64,6 +64,9 @@ function fixFailedMigrations() {
if (
err.message.includes(
'cannot be rolled back because it is not in a failed state'
) ||
err.message.includes(
'cannot be rolled back because it was never applied'
)
) {
// migration has been rolled back, skip it