mirror of
https://github.com/ppy/osu
synced 2024-12-11 09:27:08 +00:00
Move collection database rather than deleting post-migration for safety
This commit is contained in:
parent
8e06d55960
commit
80ffa2cf20
@ -802,8 +802,8 @@ namespace osu.Game.Database
|
|||||||
|
|
||||||
if (legacyCollectionImporter.GetAvailableCount(storage).GetResultSafely() > 0)
|
if (legacyCollectionImporter.GetAvailableCount(storage).GetResultSafely() > 0)
|
||||||
{
|
{
|
||||||
storage.Delete("collection.db");
|
|
||||||
legacyCollectionImporter.ImportFromStorage(storage).WaitSafely();
|
legacyCollectionImporter.ImportFromStorage(storage).WaitSafely();
|
||||||
|
storage.Move("collection.db", "collection.db.migrated");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
catch (Exception e)
|
catch (Exception e)
|
||||||
|
Loading…
Reference in New Issue
Block a user