mirror of
https://github.com/osukey/osukey.git
synced 2025-05-21 21:47:31 +09: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<RulesetInfo>().HasIndex(b => b.ShortName).IsUnique();
|
||||||
|
|
||||||
modelBuilder.Entity<BeatmapInfo>().HasOne(b => b.BaseDifficulty);
|
modelBuilder.Entity<BeatmapInfo>().HasOne(b => b.BaseDifficulty);
|
||||||
|
|
||||||
|
modelBuilder.Entity<ScoreInfo>().HasIndex(b => b.OnlineScoreID).IsUnique();
|
||||||
}
|
}
|
||||||
|
|
||||||
private class OsuDbLoggerFactory : ILoggerFactory
|
private class OsuDbLoggerFactory : ILoggerFactory
|
||||||
|
@ -67,7 +67,7 @@ namespace osu.Game.Scoring
|
|||||||
|
|
||||||
public BeatmapInfo BeatmapInfo;
|
public BeatmapInfo BeatmapInfo;
|
||||||
|
|
||||||
public long OnlineScoreID;
|
public long? OnlineScoreID { get; set; }
|
||||||
|
|
||||||
public DateTimeOffset Date;
|
public DateTimeOffset Date;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user