v8.2.0.2: fix metrics display

master
Aidaho 2025-05-21 14:58:52 +03:00
parent fad4fa6d25
commit f8fa52a88d
1 changed files with 22 additions and 0 deletions

View File

@ -0,0 +1,22 @@
from playhouse.migrate import *
from app.modules.db.db_model import connect, Version
migrator = connect(get_migrator=1)
def up():
"""Apply the migration."""
try:
Version.update(version='8.2.0.2').execute()
except Exception as e:
print(f"Error updating version: {str(e)}")
raise e
def down():
"""Roll back the migration."""
try:
Version.update(version='8.2.0').execute()
except Exception as e:
print(f"Error rolling back migration: {str(e)}")
raise e