Merge pull request #1568 from molecula/fix-int-fk

Remove integer fk error check
This commit is contained in:
Ben Johnson 2021-04-09 11:50:41 -06:00 committed by GitHub
commit eb119d2d35
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1438,8 +1438,6 @@ func (o *fieldOptions) validate() error {
return pilosa.NewBadRequestError(errors.New("cacheSize does not apply to field type int"))
} else if o.TimeQuantum != nil {
return pilosa.NewBadRequestError(errors.New("timeQuantum does not apply to field type int"))
} else if o.ForeignIndex != nil {
return pilosa.NewBadRequestError(errors.New("int field cannot be a foreign key"))
}
case pilosa.FieldTypeDecimal:
if o.Scale == nil {