Skyvern/run_alembic_check.sh
2024-03-01 10:09:30 -08:00

6 lines
157 B
Bash
Executable file

#!/bin/sh
# first apply migrations
export PATH=$PATH:.venv/bin
alembic upgrade head
# then check if the database is up to date with the models
alembic check