Add unique constraints on RulesetInfo table to ensure things stay sane.

This commit is contained in:
Dean Herbert
2017-04-18 09:47:16 +09:00
parent 4393c2cb25
commit 2734983564

View File

@ -12,8 +12,10 @@ namespace osu.Game.Database
[PrimaryKey, AutoIncrement]
public int? ID { get; set; }
[Indexed(Unique = true)]
public string Name { get; set; }
[Indexed(Unique = true)]
public string InstantiationInfo { get; set; }
[Indexed]