We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e6c1b01 commit c7e5f4aCopy full SHA for c7e5f4a
src/Weasel.Postgresql/Tables/IndexDefinition.cs
@@ -21,6 +21,7 @@ public class IndexDefinition: INamed
21
private string? _customIndexMethod;
22
23
private string? _indexName;
24
+ private bool _isUnique;
25
26
public IndexDefinition(string indexName)
27
{
@@ -62,7 +63,17 @@ public string? CustomMethod
62
63
/// <summary>
64
/// Option to create unique index
65
/// </summary>
- public bool IsUnique { get; set; }
66
+ public bool IsUnique
67
+ {
68
+ get => _isUnique;
69
+ set
70
71
+ _isUnique = value;
72
+
73
+ if (_isUnique == false)
74
+ NullsNotDistinct = false;
75
+ }
76
77
78
79
/// Should unique index consider nulls non distinct.
0 commit comments