Add index on online score id

This commit is contained in:
smoogipoo 2018-11-28 18:52:57 +09:00
parent b8e60afa69
commit 542a75d076
2 changed files with 3 additions and 1 deletions

View File

@ -119,6 +119,8 @@ namespace osu.Game.Database
modelBuilder.Entity<RulesetInfo>().HasIndex(b => b.ShortName).IsUnique();
modelBuilder.Entity<BeatmapInfo>().HasOne(b => b.BaseDifficulty);
modelBuilder.Entity<ScoreInfo>().HasIndex(b => b.OnlineScoreID).IsUnique();
}
private class OsuDbLoggerFactory : ILoggerFactory

View File

@ -67,7 +67,7 @@ namespace osu.Game.Scoring
public BeatmapInfo BeatmapInfo;
public long OnlineScoreID;
public long? OnlineScoreID { get; set; }
public DateTimeOffset Date;