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