Skip to content

The Free Software Media System - Server Backend & API

Fix ordering of cleanup in migration

Shadowghost9730aaac578c
diff --git a/Jellyfin.Server/Migrations/Routines/MigrateLinkedChildren.cs b/Jellyfin.Server/Migrations/Routines/MigrateLinkedChildren.cs
index 3e6c9db713..b00f53bbe7 100644
--- a/Jellyfin.Server/Migrations/Routines/MigrateLinkedChildren.cs
+++ b/Jellyfin.Server/Migrations/Routines/MigrateLinkedChildren.cs
@@ -225,8 +225,8 @@ internal class MigrateLinkedChildren : IDatabaseMigrationRoutine
_logger.LogInformation("LinkedChildren migration completed. Processed {Count} items.", processedCount);
CleanupWrongTypeAlternateVersions(context);
- CleanupOrphanedLinkedChildren(context);
CleanupOrphanedAlternateVersionBaseItems(context);
+ CleanupOrphanedLinkedChildren(context);
}
private void CleanupWrongTypeAlternateVersions(JellyfinDbContext context)