File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ type IndexOption struct {
23
23
Sort string // DESC, ASC
24
24
Collate string
25
25
Length int
26
- priority int
26
+ Priority int
27
27
}
28
28
29
29
// ParseIndexes parse schema indexes
@@ -64,7 +64,7 @@ func (schema *Schema) ParseIndexes() []*Index {
64
64
65
65
idx .Fields = append (idx .Fields , index .Fields ... )
66
66
sort .Slice (idx .Fields , func (i , j int ) bool {
67
- return idx .Fields [i ].priority < idx .Fields [j ].priority
67
+ return idx .Fields [i ].Priority < idx .Fields [j ].Priority
68
68
})
69
69
}
70
70
}
@@ -155,7 +155,7 @@ func parseFieldIndexes(field *Field) (indexes []Index, err error) {
155
155
Sort : settings ["SORT" ],
156
156
Collate : settings ["COLLATE" ],
157
157
Length : length ,
158
- priority : priority ,
158
+ Priority : priority ,
159
159
}},
160
160
})
161
161
}
You can’t perform that action at this time.
0 commit comments