Projet

Général

Profil

0001-sql-start-migrations-with-snapshots-and-logged-error.patch

Frédéric Péters, 13 mai 2022 17:04

Télécharger (1,72 ko)

Voir les différences:

Subject: [PATCH] sql: start migrations with snapshots and logged errors tables
 (#65223)

 wcs/sql.py | 18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)
wcs/sql.py
4148 4148
        raise RuntimeError()
4149 4149
    if sql_level < 1:  # 1: introduction of tracking_code table
4150 4150
        do_tracking_code_table()
4151
    if sql_level < 54:
4152
        # 42: create snapshots table
4153
        # 54: add patch column
4154
        do_snapshots_table()
4155
    if sql_level < 53:
4156
        # 47: store LoggedErrors in SQL
4157
        # 48: remove acked attribute from LoggedError
4158
        # 53: add kind column to logged_errors table
4159
        do_loggederrors_table()
4151 4160
    if sql_level < 52:
4152 4161
        # 2: introduction of formdef_id in views
4153 4162
        # 5: add concerned_roles_array, is_at_endpoint and fts to views
......
4247 4256
                continue
4248 4257
            for formdata in formdef.data_class().select_iterator():
4249 4258
                formdata._set_auto_fields(cur)  # build digests
4250
    if sql_level < 54:
4251
        # 42: create snapshots table
4252
        # 54: add patch column
4253
        do_snapshots_table()
4254
    if sql_level < 53:
4255
        # 47: store LoggedErrors in SQL
4256
        # 48: remove acked attribute from LoggedError
4257
        # 53: add kind column to logged_errors table
4258
        do_loggederrors_table()
4259 4259
    if sql_level < 50:
4260 4260
        # 49: store Role in SQL
4261 4261
        # 50: switch role uuid column to varchar
4262
-