mirror of
https://github.com/ppy/osu.git
synced 2025-01-15 16:03:01 +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);
|
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.MD5Hash).IsUnique();
|
||||||
modelBuilder.Entity<BeatmapInfo>().HasIndex(b => b.Hash).IsUnique();
|
modelBuilder.Entity<BeatmapInfo>().HasIndex(b => b.Hash).IsUnique();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user