mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-13 21:05:19 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user