add missing extension
gitea/wcs/pipeline/head There was a failure building this commit Details

This commit is contained in:
Pierre Ducroquet 2024-02-28 16:38:46 +01:00
parent 04d87f5259
commit 11f0998225
1 changed files with 1 additions and 0 deletions

View File

@ -1703,6 +1703,7 @@ def init_search_tokens(conn=None, cur=None):
init_search_tokens_data(cur)
# Index at the end, small performance trick... not that useful, but it's free...
cur.execute("CREATE EXTENSION IF NOT EXISTS pg_trgm;")
cur.execute("CREATE INDEX IF NOT EXISTS wcs_search_tokens_trgm ON wcs_search_tokens USING gin(token gin_trgm_ops);")
# And last: functions to use this brand new table