sql: force views to be rebuilt (#15783)
This commit is contained in:
parent
d13dfc8ce9
commit
a6cae077f1
|
@ -1878,7 +1878,7 @@ def get_yearly_totals(period_start=None, period_end=None, criterias=None):
|
|||
return result
|
||||
|
||||
|
||||
SQL_LEVEL = 21
|
||||
SQL_LEVEL = 22
|
||||
|
||||
def migrate_global_views(conn, cur):
|
||||
cur.execute('''SELECT COUNT(*) FROM information_schema.tables
|
||||
|
@ -1912,7 +1912,7 @@ def migrate():
|
|||
raise RuntimeError()
|
||||
if sql_level < 1: # 1: introduction of tracking_code table
|
||||
do_tracking_code_table()
|
||||
if sql_level < 20:
|
||||
if sql_level < 22:
|
||||
# 2: introduction of formdef_id in views
|
||||
# 5: add concerned_roles_array, is_at_endpoint and fts to views
|
||||
# 7: add backoffice_submission to tables
|
||||
|
@ -1925,6 +1925,7 @@ def migrate():
|
|||
# 15: add geolocation to formdata
|
||||
# 19: add geolocation to views
|
||||
# 20: remove user hash stuff
|
||||
# 22: rebuild views
|
||||
migrate_views(conn, cur)
|
||||
if sql_level < 21:
|
||||
# 3: introduction of _structured for user fields
|
||||
|
|
Loading…
Reference in New Issue