看来我可以
include_object与
include_schemas
在
alembic/env.py:
def include_object(object, name, type_, reflected, compare_to): if type_ == 'table' and object.schema != MY_SCHEMA: return False return True...context.configure(..., include_object=include_object, ...)



