mirror of
https://github.com/ppy/osu.git
synced 2024-12-13 08:32:57 +08:00
Add index on online score id
This commit is contained in:
parent
b8e60afa69
commit
542a75d076
@ -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
|
||||
|
@ -67,7 +67,7 @@ namespace osu.Game.Scoring
|
||||
|
||||
public BeatmapInfo BeatmapInfo;
|
||||
|
||||
public long OnlineScoreID;
|
||||
public long? OnlineScoreID { get; set; }
|
||||
|
||||
public DateTimeOffset Date;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user