diff --git a/app/modules/db/migrations/v8_2_8_update_version.py b/app/modules/db/migrations/v8_2_8_update_version.py new file mode 100644 index 00000000..562e7128 --- /dev/null +++ b/app/modules/db/migrations/v8_2_8_update_version.py @@ -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.6').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.5').execute() + except Exception as e: + print(f"Error rolling back migration: {str(e)}") + raise e diff --git a/app/modules/roxywi/class_models.py b/app/modules/roxywi/class_models.py index cee44a49..37e23e00 100644 --- a/app/modules/roxywi/class_models.py +++ b/app/modules/roxywi/class_models.py @@ -235,7 +235,7 @@ class ChannelRequest(BaseModel): class ServerInstall(BaseModel): id: int master: Optional[bool] = 0 - version: Optional[str] = '3.1.7-1' + version: Optional[str] = '3.3.0-1' class ServiceInstall(BaseModel): diff --git a/app/templates/install.html b/app/templates/install.html index 2eb9172c..c2f26320 100644 --- a/app/templates/install.html +++ b/app/templates/install.html @@ -39,8 +39,8 @@