From 99d3a864936360569abed250bfb665290f5c2a52 Mon Sep 17 00:00:00 2001 From: Igor Ilic Date: Mon, 15 Dec 2025 16:44:46 +0100 Subject: [PATCH] fix: use alembic version from current virtual env --- cognee/run_migrations.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cognee/run_migrations.py b/cognee/run_migrations.py index c08c0fc41..f8fd3b189 100644 --- a/cognee/run_migrations.py +++ b/cognee/run_migrations.py @@ -34,7 +34,7 @@ async def run_migrations(): ) migration_result = subprocess.run( - ["alembic", "upgrade", "head"], + ["python", "-m", "alembic", "upgrade", "head"], capture_output=True, text=True, cwd=Path(package_root),