From 8a451a0c49877e66eb10fbfab90febb502c41a65 Mon Sep 17 00:00:00 2001 From: PTah Date: Sun, 21 Jun 2026 11:04:07 +1000 Subject: [PATCH] fix: alembic 022 down_revision must be 021 not 021_agent_git_release (0.20.20) --- backend/alembic/versions/022_host_remote_action.py | 4 ++-- backend/app/version.py | 2 +- backend/tests/test_health.py | 4 ++-- frontend/src/version.ts | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/backend/alembic/versions/022_host_remote_action.py b/backend/alembic/versions/022_host_remote_action.py index 93151c2..d269569 100644 --- a/backend/alembic/versions/022_host_remote_action.py +++ b/backend/alembic/versions/022_host_remote_action.py @@ -1,7 +1,7 @@ """host remote_action JSON for background SSH/WinRM jobs Revision ID: 022_host_remote_action -Revises: 021_agent_git_release +Revises: 021 Create Date: 2026-06-21 """ @@ -11,7 +11,7 @@ import sqlalchemy as sa from sqlalchemy.dialects import postgresql revision = "022_host_remote_action" -down_revision = "021_agent_git_release" +down_revision = "021" branch_labels = None depends_on = None diff --git a/backend/app/version.py b/backend/app/version.py index 68e882e..54c3c3f 100644 --- a/backend/app/version.py +++ b/backend/app/version.py @@ -1,5 +1,5 @@ """Единый источник версии SAC (API, health, логи, OpenAPI).""" APP_NAME = "Security Alert Center" -APP_VERSION = "0.20.19" +APP_VERSION = "0.20.20" APP_VERSION_LABEL = f"{APP_NAME} v.{APP_VERSION}" diff --git a/backend/tests/test_health.py b/backend/tests/test_health.py index b798bdb..9427441 100644 --- a/backend/tests/test_health.py +++ b/backend/tests/test_health.py @@ -4,6 +4,6 @@ from app.version import APP_NAME, APP_VERSION, APP_VERSION_LABEL def test_version_constants(): - assert APP_VERSION == "0.20.19" + assert APP_VERSION == "0.20.20" assert APP_NAME == "Security Alert Center" - assert APP_VERSION_LABEL == "Security Alert Center v.0.20.19" + assert APP_VERSION_LABEL == "Security Alert Center v.0.20.20" diff --git a/frontend/src/version.ts b/frontend/src/version.ts index 47f2697..0bc837b 100644 --- a/frontend/src/version.ts +++ b/frontend/src/version.ts @@ -1,4 +1,4 @@ /** Fallback до загрузки /health; при релизе держите в sync с backend/app/version.py */ export const APP_NAME = "Security Alert Center"; -export const APP_VERSION = "0.20.19"; +export const APP_VERSION = "0.20.20"; export const APP_VERSION_LABEL = `${APP_NAME} v.${APP_VERSION}`;