10 lines
245 B
Bash
Executable File
10 lines
245 B
Bash
Executable File
#!/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."
|