I want to use alembic to manage my database in the scope of a single PostgreSQL schema named foo.
For automatic deployment of new environments I want alembic to create the schema:
op.execute("create schema foo")
I also want to have the alembic_version table in this schema using version_table_schema='foo' for context.configure in env.py.
However I run into a bit of a catch 22 situation as the schema is not yet created and alembic cant check what version its in.
Is there no way to use the version_table_schema kwarg without manual intervention? do i need to have a separate env.py and versions folder to create the schema?