Compare commits

...
Sign in to create a new pull request.

4 commits

Author SHA1 Message Date
Erik Montnemery
922e0c2983
Merge branch 'dev' into recorder_disable_post_migration 2024-09-02 21:33:53 +02:00
Erik Montnemery
912ccf3f8b
Merge branch 'dev' into recorder_disable_post_migration 2024-09-02 21:20:37 +02:00
Erik Montnemery
fb8a014fa9
Merge branch 'dev' into recorder_disable_post_migration 2024-09-02 20:41:19 +02:00
Erik
23eab66ffa Remove post migration functionality 2024-09-02 14:18:36 +02:00

View file

@ -1843,18 +1843,6 @@ def post_schema_migration(
which is blocked from being processed until the schema migration is
complete.
"""
if old_version < 32 <= new_version:
# In version 31 we migrated all the time_fired, last_updated, and last_changed
# columns to be timestamps. In version 32 we need to wipe the old columns
# since they are no longer used and take up a significant amount of space.
assert instance.event_session is not None
assert instance.engine is not None
_wipe_old_string_time_columns(instance, instance.engine, instance.event_session)
if old_version < 35 <= new_version:
# In version 34 we migrated all the created, start, and last_reset
# columns to be timestamps. In version 35 we need to wipe the old columns
# since they are no longer used and take up a significant amount of space.
_wipe_old_string_statistics_columns(instance)
def _wipe_old_string_statistics_columns(instance: Recorder) -> None: