test(postgres): use runtime migration command

This commit is contained in:
2026-08-15 23:51:17 +09:00
parent c292df0a4b
commit fe2dd3d15e
@@ -289,7 +289,7 @@ def test_alembic_upgrade_is_repeatable_on_fresh_postgres_database() -> None:
) )
for _ in range(2): for _ in range(2):
subprocess.run( subprocess.run(
[str(_ROOT / ".venv/bin/python"), "-m", "alembic", "upgrade", "head"], [str(_ROOT / ".venv/bin/pfhub"), "migrate-db"],
cwd=_ROOT, cwd=_ROOT,
env=env, env=env,
check=True, check=True,