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