mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-12-23 09:14:45 +03:00
fixed user data migration
This commit is contained in:
@@ -70,7 +70,14 @@ namespace MediaBrowser.Server.Implementations.Persistence
|
||||
}
|
||||
}
|
||||
|
||||
File.Move(oldFile, Path.Combine(Path.GetDirectoryName(oldFile), "userdata_v1.db.bak"));
|
||||
var backupFile = Path.Combine(Path.GetDirectoryName(oldFile), "userdata_v1.db.bak");
|
||||
|
||||
if (File.Exists(backupFile))
|
||||
{
|
||||
File.Delete(backupFile);
|
||||
}
|
||||
|
||||
File.Move(oldFile, backupFile);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
Reference in New Issue
Block a user