Use the -t async flag for asynchronous support:
alembic init -t async alembic
Then the alembic file "env.py" is already formed, with support for asynchrony, or rather the function async def run_async_migrations()
, which allows processing asynchronous functions.