mirror of
https://github.com/osukey/osukey.git
synced 2025-05-09 15:47:38 +09:00
Don't backup collection database
This is no longer required due to recent changes which mean the collection database will retain beatmap references even if they aren't loaded locally (see https://github.com/ppy/osu/pull/18619).
This commit is contained in:
parent
739a696467
commit
17dbb599d1
@ -244,15 +244,6 @@ namespace osu.Game
|
|||||||
|
|
||||||
EFContextFactory.CreateBackup(Path.Combine(backup_folder, $"client.{migration}.db"));
|
EFContextFactory.CreateBackup(Path.Combine(backup_folder, $"client.{migration}.db"));
|
||||||
realm.CreateBackup(Path.Combine(backup_folder, $"client.{migration}.realm"));
|
realm.CreateBackup(Path.Combine(backup_folder, $"client.{migration}.realm"));
|
||||||
|
|
||||||
using (var source = Storage.GetStream("collection.db"))
|
|
||||||
{
|
|
||||||
if (source != null)
|
|
||||||
{
|
|
||||||
using (var destination = Storage.CreateFileSafely(Path.Combine(backup_folder, $"collection.{migration}.db")))
|
|
||||||
source.CopyTo(destination);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
dependencies.CacheAs(Storage);
|
dependencies.CacheAs(Storage);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user