From e09170ffe567494f006908a85da9deb8c5924d84 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20P=C3=A9ters?= Date: Tue, 25 Aug 2020 08:18:51 +0200 Subject: [PATCH] sql: reindex formdata for new full text normalization (#46044) --- wcs/sql.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/wcs/sql.py b/wcs/sql.py index 3e433616c..e58870283 100644 --- a/wcs/sql.py +++ b/wcs/sql.py @@ -2554,7 +2554,7 @@ def get_yearly_totals(period_start=None, period_end=None, criterias=None): return result -SQL_LEVEL = 40 +SQL_LEVEL = 41 def migrate_global_views(conn, cur): @@ -2668,7 +2668,7 @@ def migrate(): # 21: (second part), store ascii_name of users # 23: (first part), use misc.simplify() over full text queries set_reindex('user', 'needed', conn=conn, cur=cur) - if sql_level < 38: + if sql_level < 41: # 17: store last_update_time in tables # 18: add user name to full-text search index # 21: (third part), add user ascii_names to full-text index @@ -2677,6 +2677,7 @@ def migrate(): # 29: add evolution parts to full-text index # 31: add user_label to formdata # 38: extract submission_agent_id to its own column + # 41: update full text normalization set_reindex('formdata', 'needed', conn=conn, cur=cur) if sql_level < 36: from wcs.formdef import FormDef