entc/integration/migrate: add FULLTEXT usage example

This commit is contained in:
Ariel Mashraki
2022-02-22 14:23:11 +02:00
committed by Ariel Mashraki
parent fe2511fc8d
commit 36a1063c7e
4 changed files with 33 additions and 7 deletions

View File

@@ -962,11 +962,11 @@ func indexType(idx *Index, d string) (string, bool) {
if ant == nil {
return "", false
}
if ant.Type != "" {
return idx.Annotation.Type, true
}
if ant.Types != nil && ant.Types[d] != "" {
return ant.Types[d], true
}
if ant.Type != "" {
return ant.Type, true
}
return "", false
}