From 9e4abb7319da628728decfcf04b82cc509638abd Mon Sep 17 00:00:00 2001 From: JPVenson Date: Thu, 27 Mar 2025 12:34:59 +0100 Subject: [PATCH] Add override for migration if old library still exists (#13779) --- Jellyfin.Server/Migrations/Routines/MigrateLibraryDb.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Jellyfin.Server/Migrations/Routines/MigrateLibraryDb.cs b/Jellyfin.Server/Migrations/Routines/MigrateLibraryDb.cs index 941a276ced..8e462015f4 100644 --- a/Jellyfin.Server/Migrations/Routines/MigrateLibraryDb.cs +++ b/Jellyfin.Server/Migrations/Routines/MigrateLibraryDb.cs @@ -325,7 +325,8 @@ internal class MigrateLibraryDb : IDatabaseMigrationRoutine _logger.LogInformation("Move {0} to {1}.", libraryDbPath, libraryDbPath + ".old"); SqliteConnection.ClearAllPools(); - File.Move(libraryDbPath, libraryDbPath + ".old"); + + File.Move(libraryDbPath, libraryDbPath + ".old", true); _logger.LogInformation("Migrating Library db took {0}.", migrationTotalTime);