mirror of
https://github.com/ent/ent.git
synced 2026-05-22 09:31:45 +03:00
entc/integration/migrate: add FULLTEXT usage example
This commit is contained in:
committed by
Ariel Mashraki
parent
fe2511fc8d
commit
36a1063c7e
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user