Browse Source

Add override for migration if old library still exists (#13779)

JPVenson 3 tháng trước cách đây
mục cha
commit
9e4abb7319
1 tập tin đã thay đổi với 2 bổ sung1 xóa
  1. 2 1
      Jellyfin.Server/Migrations/Routines/MigrateLibraryDb.cs

+ 2 - 1
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);