mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-07-16 05:43:54 +03:00
[PR #13950] [MERGED] Unified migration handling #13781
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/13950
Author: @JPVenson
Created: 4/19/2025
Status: ✅ Merged
Merged: 4/28/2025
Merged by: @crobibero
Base:
master← Head:feature/unifiedMigrationHandling📝 Commits (10+)
00bcb46WIP unified migration242404bMerge remote-tracking branch 'jellyfinorigin/master' into feature/unifiedMigrationHandlingc320da5Adapt old style migrations for new system781bb7fFixed Migration keys401bbd5Fix codesmell7db5dbfFix migration ordercfd918dFixed Testse7fc3f3Fix messed up order of migrations03b9d35Fixed migration backup overridecef9153Merge remote-tracking branch 'jellyfinorigin/master' into feature/unifiedMigrationHandling📊 Changes
40 files changed (+555 additions, -528 deletions)
View changed files
📝
Emby.Server.Implementations/ApplicationHost.cs(+0 -15)➕
Jellyfin.Server/Migrations/IAsyncMigrationRoutine.cs(+31 -0)📝
Jellyfin.Server/Migrations/IDatabaseMigrationRoutine.cs(+2 -0)➖
Jellyfin.Server/Migrations/IMigrationRoutine.cs(+0 -32)➕
Jellyfin.Server/Migrations/JellyfinMigrationAttribute.cs(+65 -0)➕
Jellyfin.Server/Migrations/JellyfinMigrationService.cs(+219 -0)➖
Jellyfin.Server/Migrations/MigrationRunner.cs(+0 -204)➖
Jellyfin.Server/Migrations/MigrationsFactory.cs(+0 -20)➖
Jellyfin.Server/Migrations/MigrationsListStore.cs(+0 -24)📝
Jellyfin.Server/Migrations/PreStartupRoutines/CreateNetworkConfiguration.cs(+3 -9)📝
Jellyfin.Server/Migrations/PreStartupRoutines/MigrateEncodingOptions.cs(+3 -9)📝
Jellyfin.Server/Migrations/PreStartupRoutines/MigrateMusicBrainzTimeout.cs(+3 -9)📝
Jellyfin.Server/Migrations/PreStartupRoutines/MigrateNetworkConfiguration.cs(+1 -9)📝
Jellyfin.Server/Migrations/PreStartupRoutines/RenameEnableGroupingIntoCollections.cs(+3 -9)📝
Jellyfin.Server/Migrations/Routines/AddDefaultCastReceivers.cs(+3 -9)📝
Jellyfin.Server/Migrations/Routines/AddDefaultPluginRepository.cs(+3 -9)📝
Jellyfin.Server/Migrations/Routines/CreateUserLoggingConfigFile.cs(+3 -9)📝
Jellyfin.Server/Migrations/Routines/DisableTranscodingThrottling.cs(+3 -9)📝
Jellyfin.Server/Migrations/Routines/FixAudioData.cs(+3 -9)📝
Jellyfin.Server/Migrations/Routines/FixPlaylistOwner.cs(+3 -9)...and 20 more files
📄 Description
Combine our Code migrations and also the EFCore migrations into a unified system.
Allows applying code migrations in order with DB migrations
Switched declaration of CodeMigrations from a Key(GUID) based system to a Date one to bring in line with EFCore
Switched declaration of metadata for migrations to attributes to prevent initialisation of migrations
fixes #12289
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.