@@ -190,11 +190,13 @@ func TestDiff_TableDiff(t *testing.T) {
190
190
{Name : "c1_index" , Unique : true , Table : from , Parts : []* schema.IndexPart {{SeqNo : 1 , C : from .Columns [0 ]}}},
191
191
{Name : "c2_unique" , Unique : true , Table : from , Parts : []* schema.IndexPart {{SeqNo : 1 , C : from .Columns [1 ]}}},
192
192
{Name : "c3_predicate" , Table : from , Parts : []* schema.IndexPart {{SeqNo : 1 , C : from .Columns [1 ]}}},
193
+ {Name : "c4_predicate" , Table : from , Parts : []* schema.IndexPart {{SeqNo : 1 , C : from .Columns [1 ]}}, Attrs : []schema.Attr {& IndexPredicate {P : "(c4 <> NULL)" }}},
193
194
}
194
195
to .Indexes = []* schema.Index {
195
196
{Name : "c1_index" , Table : from , Parts : []* schema.IndexPart {{SeqNo : 1 , C : from .Columns [0 ]}}},
196
197
{Name : "c3_unique" , Unique : true , Table : from , Parts : []* schema.IndexPart {{SeqNo : 1 , C : to .Columns [1 ]}}},
197
198
{Name : "c3_predicate" , Table : from , Parts : []* schema.IndexPart {{SeqNo : 1 , C : from .Columns [1 ]}}, Attrs : []schema.Attr {& IndexPredicate {P : "c3 <> NULL" }}},
199
+ {Name : "c4_predicate" , Table : from , Parts : []* schema.IndexPart {{SeqNo : 1 , C : from .Columns [1 ]}}, Attrs : []schema.Attr {& IndexPredicate {P : "c4 <> NULL" }}},
198
200
}
199
201
return testcase {
200
202
name : "indexes" ,
0 commit comments