fix: run_alembic_check.sh must use the repo venv's alembic, not a global one (#6970)

This commit is contained in:
pedrohsdb 2026-07-01 13:36:49 -07:00 committed by GitHub
parent ebb6f8f43c
commit 7c643b6a80
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -6,7 +6,10 @@
export DATABASE_STRING
# first apply migrations
export PATH="${PATH}:.venv/bin"
# Prepend the repo venv so its alembic wins over a global install (e.g. Homebrew's),
# which lacks the `cloud` package and would flag cloud tables as drift.
SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
export PATH="${SCRIPT_DIR}/.venv/bin:${PATH}"
alembic upgrade head
# then check if the database is up to date with the models
if ! alembic check; then