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

This commit is contained in:
JPVenson 2025-03-27 12:34:59 +01:00 committed by GitHub
parent d06ce1f1e0
commit 9e4abb7319
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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);