#!/usr/bin/env bash set -euo pipefail echo "Checking Alembic migration chain..." python -m alembic heads python -m alembic current || true python -m alembic upgrade head python -m alembic current echo "Alembic migrations applied successfully."