mirror of
https://github.com/ppy/osu.git
synced 2025-01-28 16:52:55 +08:00
Allow recovery from a very broken database
This commit is contained in:
parent
9b1ed5b3aa
commit
efaf98c5cf
@ -160,7 +160,14 @@ namespace osu.Game.Database
|
|||||||
public void Migrate()
|
public void Migrate()
|
||||||
{
|
{
|
||||||
migrateFromSqliteNet();
|
migrateFromSqliteNet();
|
||||||
Database.Migrate();
|
try
|
||||||
|
{
|
||||||
|
Database.Migrate();
|
||||||
|
}
|
||||||
|
catch
|
||||||
|
{
|
||||||
|
throw new MigrationFailedException();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private void migrateFromSqliteNet()
|
private void migrateFromSqliteNet()
|
||||||
|
Loading…
Reference in New Issue
Block a user