mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-12-16 05:53:03 +03:00
Add override for migration if old library still exists (#13779)
This commit is contained in:
@@ -325,7 +325,8 @@ internal class MigrateLibraryDb : IDatabaseMigrationRoutine
|
|||||||
_logger.LogInformation("Move {0} to {1}.", libraryDbPath, libraryDbPath + ".old");
|
_logger.LogInformation("Move {0} to {1}.", libraryDbPath, libraryDbPath + ".old");
|
||||||
|
|
||||||
SqliteConnection.ClearAllPools();
|
SqliteConnection.ClearAllPools();
|
||||||
File.Move(libraryDbPath, libraryDbPath + ".old");
|
|
||||||
|
File.Move(libraryDbPath, libraryDbPath + ".old", true);
|
||||||
|
|
||||||
_logger.LogInformation("Migrating Library db took {0}.", migrationTotalTime);
|
_logger.LogInformation("Migrating Library db took {0}.", migrationTotalTime);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user