generate sql from alembic revision code example Example: alembic generate sql $ alembic upgrade 1975ea83b712:ae1027a6acf --sql > migration.sql