1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-30 07:32:55 +08:00

Allow recovery from a very broken database

This commit is contained in:
Dean Herbert 2017-10-20 00:48:27 +09:00
parent 9b1ed5b3aa
commit efaf98c5cf

View File

@ -160,8 +160,15 @@ namespace osu.Game.Database
public void Migrate() public void Migrate()
{ {
migrateFromSqliteNet(); migrateFromSqliteNet();
try
{
Database.Migrate(); Database.Migrate();
} }
catch
{
throw new MigrationFailedException();
}
}
private void migrateFromSqliteNet() private void migrateFromSqliteNet()
{ {