Files
postbot/bin/migrate.sh

9 lines
249 B
Bash
Executable File

#!/bin/bash
set -e
echo "Creating migration..."
docker compose run --rm api bash -c "alembic revision --autogenerate -m 'Add description column to templates'"
echo "Applying migration..."
docker compose run --rm api bash -c "alembic upgrade head"