engine-exec-2
Some checks failed
Deploy on push / deploy (push) Failing after 6s

This commit is contained in:
Untone 2024-02-25 15:56:28 +03:00
parent 146d49be5b
commit 07a9e7ef56

View File

@ -121,7 +121,7 @@ def create_fts_index(table_name, fts_index_name):
) )
if not author_fts_index_exists: if not author_fts_index_exists:
with local_session() as session: with local_session() as session:
session.bind.execute( session.execute(
""" """
CREATE INDEX {index_name} ON {author_table_name} CREATE INDEX {index_name} ON {author_table_name}
USING gin(to_tsvector('russian', COALESCE(name,'') || ' ' || COALESCE(bio,'') || ' ' || COALESCE(about,''))); USING gin(to_tsvector('russian', COALESCE(name,'') || ' ' || COALESCE(bio,'') || ' ' || COALESCE(about,'')));