Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
Shackless committed Sep 24, 2024
2 parents da290bd + 269eeb4 commit 86bc2eb
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions services/config_migration_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down Expand Up @@ -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
]

0 comments on commit 86bc2eb

Please sign in to comment.