()
| 1068 | } |
| 1069 | |
| 1070 | func (c *Collection) initVerifiedField() { |
| 1071 | field, _ := c.Fields.GetByName(FieldNameVerified).(*BoolField) |
| 1072 | if field == nil { |
| 1073 | // load default field |
| 1074 | c.Fields.Add(&BoolField{ |
| 1075 | Name: FieldNameVerified, |
| 1076 | System: true, |
| 1077 | }) |
| 1078 | } else { |
| 1079 | // enforce system defaults |
| 1080 | field.System = true |
| 1081 | } |
| 1082 | } |
| 1083 | |
| 1084 | func (c *Collection) fieldIndexName(field string) string { |
| 1085 | name := "idx_" + field + "_" |
no test coverage detected