mirror of https://github.com/ppy/osu
Add unique constraints on RulesetInfo table to ensure things stay sane.
This commit is contained in:
parent
4393c2cb25
commit
2734983564
|
@ -12,8 +12,10 @@ public class RulesetInfo
|
|||
[PrimaryKey, AutoIncrement]
|
||||
public int? ID { get; set; }
|
||||
|
||||
[Indexed(Unique = true)]
|
||||
public string Name { get; set; }
|
||||
|
||||
[Indexed(Unique = true)]
|
||||
public string InstantiationInfo { get; set; }
|
||||
|
||||
[Indexed]
|
||||
|
|
Loading…
Reference in New Issue