This commit is contained in:
parent
a149091e3c
commit
ccc5c98a14
|
@ -122,7 +122,7 @@ if not author_fts_index_exists:
|
|||
with local_session() as session:
|
||||
session.bind.execute(
|
||||
"""
|
||||
CREATE INDEX {index_name} ON authors
|
||||
CREATE INDEX {index_name} ON author
|
||||
USING gin(to_tsvector('russian', COALESCE(name,'') || ' ' || COALESCE(bio,'') || ' ' || COALESCE(about,'')));
|
||||
""".format(index_name=author_fts_index_name)
|
||||
)
|
||||
|
|
Loading…
Reference in New Issue
Block a user