How can I use Alembic\'s --autogenerate to migrate multiple Postgres schemas that are not hard-coded in the SQL Alchemy model? (mirror question of SQLA
Here's a workable solution: https://gist.github.com/nickretallack/bb8ca0e37829b4722dd1
It still requires you to edit the schema name out of each migration after it's generated, but at least the interesting work is done by Alembic. Thanks to Michael Bayer for help with this on the mailing list.