fix: declarative search index

v0.1
rrr-marble 4 years ago
parent 587d7beb3c
commit fc50ffdb71

@ -52,6 +52,5 @@ class Item(ItemBase):
Computed("to_tsvector('russian', geodata.description)", persisted=True),
)
__table_args__ = Index(
"geodata_search_idx", geodata_search_ts, postgresql_using="gin"
)
Index("geodata_search_idx", Item.geodata_search_ts, postgresql_using="gin")

Loading…
Cancel
Save