aboutsummaryrefslogtreecommitdiff
path: root/Jellyfin.Server/Migrations/Routines/MigrateLibraryDb.cs
diff options
context:
space:
mode:
authorJPVenson <github@jpb.email>2025-03-27 12:34:59 +0100
committerGitHub <noreply@github.com>2025-03-27 05:34:59 -0600
commit9e4abb7319da628728decfcf04b82cc509638abd (patch)
tree6d7626f10cdd4d625078c186c026133f1a407271 /Jellyfin.Server/Migrations/Routines/MigrateLibraryDb.cs
parentd06ce1f1e035d4630121f45dcadbdebc95cb07e2 (diff)
Add override for migration if old library still exists (#13779)
Diffstat (limited to 'Jellyfin.Server/Migrations/Routines/MigrateLibraryDb.cs')
-rw-r--r--Jellyfin.Server/Migrations/Routines/MigrateLibraryDb.cs3
1 files changed, 2 insertions, 1 deletions
diff --git a/Jellyfin.Server/Migrations/Routines/MigrateLibraryDb.cs b/Jellyfin.Server/Migrations/Routines/MigrateLibraryDb.cs
index 941a276ce..8e462015f 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);