mirror of
https://github.com/Skyvern-AI/skyvern.git
synced 2026-07-09 16:09:13 +00:00
fix: run_alembic_check.sh must use the repo venv's alembic, not a global one (#6970)
This commit is contained in:
parent
ebb6f8f43c
commit
7c643b6a80
1 changed files with 4 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue