mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-08-10 21:48:48 +08: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 (
|
if (
|
||||||
err.message.includes(
|
err.message.includes(
|
||||||
'cannot be rolled back because it is not in a failed state'
|
'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
|
// migration has been rolled back, skip it
|
||||||
|
|||||||
Reference in New Issue
Block a user