Projet

Général

Profil

0001-sql-reindex-formdata-for-new-full-text-normalization.patch

Frédéric Péters, 25 août 2020 08:20

Télécharger (1,43 ko)

Voir les différences:

Subject: [PATCH] sql: reindex formdata for new full text normalization
 (#46044)

 wcs/sql.py | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
wcs/sql.py
2554 2554
    return result
2555 2555

  
2556 2556

  
2557
SQL_LEVEL = 40
2557
SQL_LEVEL = 41
2558 2558

  
2559 2559

  
2560 2560
def migrate_global_views(conn, cur):
......
2668 2668
        # 21: (second part), store ascii_name of users
2669 2669
        # 23: (first part), use misc.simplify() over full text queries
2670 2670
        set_reindex('user', 'needed', conn=conn, cur=cur)
2671
    if sql_level < 38:
2671
    if sql_level < 41:
2672 2672
        # 17: store last_update_time in tables
2673 2673
        # 18: add user name to full-text search index
2674 2674
        # 21: (third part), add user ascii_names to full-text index
......
2677 2677
        # 29: add evolution parts to full-text index
2678 2678
        # 31: add user_label to formdata
2679 2679
        # 38: extract submission_agent_id to its own column
2680
        # 41: update full text normalization
2680 2681
        set_reindex('formdata', 'needed', conn=conn, cur=cur)
2681 2682
    if sql_level < 36:
2682 2683
        from wcs.formdef import FormDef
2683
-