From 269eeb40a14312003dc6ee017362d582da2a5fa0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Simon=20Hopst=C3=A4tter?= Date: Tue, 24 Sep 2024 11:23:43 +0200 Subject: [PATCH] add (empty) migration for 1.6.1 --- services/config_migration_service.py | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/services/config_migration_service.py b/services/config_migration_service.py index fd2e99d4..d8faf444 100644 --- a/services/config_migration_service.py +++ b/services/config_migration_service.py @@ -310,6 +310,24 @@ def migrate_wingman(old: dict, new: Optional[dict]) -> dict: migrate_wingman=migrate_wingman, ) + def migrate_160_to_161(self): + def migrate_settings(old: dict, new: dict) -> dict: + return old + + def migrate_defaults(old: dict, new: dict) -> dict: + return old + + def migrate_wingman(old: dict, new: Optional[dict]) -> dict: + return old + + self.migrate( + old_version="1_6_0", + new_version="1_6_1", + migrate_settings=migrate_settings, + migrate_defaults=migrate_defaults, + migrate_wingman=migrate_wingman, + ) + # INTERNAL def log(self, message: str, highlight: bool = False): @@ -499,5 +517,6 @@ def migrate( MIGRATIONS = [ ("1_4_0", "1_5_0", ConfigMigrationService.migrate_140_to_150), ("1_5_0", "1_6_0", ConfigMigrationService.migrate_150_to_160), + ("1_6_0", "1_6_1", ConfigMigrationService.migrate_160_to_161), # Add new migrations here in order ]