Use similar method of consuming OnlineID as done in beatmap classes

This commit is contained in:
Dean Herbert
2021-12-10 18:32:32 +09:00
parent c9f6c5c673
commit f7c5a3f506
3 changed files with 11 additions and 9 deletions

View File

@ -147,7 +147,7 @@ namespace osu.Game.Database
modelBuilder.Entity<BeatmapInfo>().HasOne(b => b.BaseDifficulty);
modelBuilder.Entity<ScoreInfo>().HasIndex(b => b.OnlineScoreID).IsUnique();
modelBuilder.Entity<ScoreInfo>().HasIndex(b => b.OnlineID).IsUnique();
}
private class OsuDbLoggerFactory : ILoggerFactory