migration system

This commit is contained in:
2026-06-24 18:32:51 -04:00
parent 3ec04552b0
commit 42cfe4823b
4 changed files with 19 additions and 3 deletions

7
untitled/migration.py Normal file
View File

@@ -0,0 +1,7 @@
_MIGRATIONS = {}
def migrate(data):
while data["version"] in _MIGRATIONS:
data = _MIGRATIONS[data["version"]](data)
return data