mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-05-04 18:09:12 +03:00
[PR #14817] [MERGED] Make migration handle parent cleanup #14136
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/jellyfin/jellyfin/pull/14817
Author: @JPVenson
Created: 9/18/2025
Status: ✅ Merged
Merged: 9/19/2025
Merged by: @crobibero
Base:
master← Head:feature/MigrationParent📝 Commits (3)
43895e3Make migration handle parent cleanup1f8b50fRemove speed improvementfd13281Update MigrateLibraryDb.cs📊 Changes
1 file changed (+44 additions, -4 deletions)
View changed files
📝
Jellyfin.Server/Migrations/Routines/MigrateLibraryDb.cs(+44 -4)📄 Description
with #14795 the foregin key for parentId now gets actually enforced which wasn't the case previously where the ParentId could have pointed to an invalid or not existing element. This pr checks the ParentId of each migrated BaseItem to actually exist to prevent failing migrations
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.