typo-fix
All checks were successful
Deploy on push / deploy (push) Successful in 1m43s

This commit is contained in:
Untone 2024-02-25 15:33:07 +03:00
parent a149091e3c
commit ccc5c98a14

View File

@ -122,7 +122,7 @@ if not author_fts_index_exists:
with local_session() as session: with local_session() as session:
session.bind.execute( 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,''))); USING gin(to_tsvector('russian', COALESCE(name,'') || ' ' || COALESCE(bio,'') || ' ' || COALESCE(about,'')));
""".format(index_name=author_fts_index_name) """.format(index_name=author_fts_index_name)
) )