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
No known key found for this signature in database
GPG Key ID: 46D71BF4958ABB49
1 changed files with 2 additions and 0 deletions

View File

@ -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]