This commit is contained in:
9
scripts/check_migrations.sh
Executable file
9
scripts/check_migrations.sh
Executable file
@@ -0,0 +1,9 @@
|
||||
#!/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."
|
||||
Reference in New Issue
Block a user