mirror of
https://github.com/ppy/osu.git
synced 2024-11-06 06:57:39 +08:00
Add unique constraint on OnlineBeatmapID
This commit is contained in:
parent
7b1083b824
commit
7d2bbc50a3
@ -78,6 +78,7 @@ namespace osu.Game.Database
|
||||
{
|
||||
base.OnModelCreating(modelBuilder);
|
||||
|
||||
modelBuilder.Entity<BeatmapInfo>().HasIndex(b => b.OnlineBeatmapID).IsUnique();
|
||||
modelBuilder.Entity<BeatmapInfo>().HasIndex(b => b.MD5Hash).IsUnique();
|
||||
modelBuilder.Entity<BeatmapInfo>().HasIndex(b => b.Hash).IsUnique();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user