I have a postgres database with default public
schema, which hosts some tables, including alembic migrations table.
I want a postgres database with an app
schema, with all the tables (including alembic migrations) moved there.
How can I do this using Alembic migrations in concert with sqlalchemy and whatever settings change?
I found some info in related questions: SQLAlchemy + alembic: create schema migration and How to specific table schema for alembic_version when using flask-migrate and Create an alembic migration to create schema for version_table_schema, but I'm strugginling to put them together in one (or two) neat migration + code changes.
I think it would be nice to have a recipe here, and I intend to post it myself in a day or so, if no one saves me from this nuisance :)