Overview of Alembic Utils
masterAlembic Utils is an extension for Alembic that adds autogenerate support for various PostgreSQL entity types. While standard Alembic can detect changes to SQLAlchemy models, Alembic Utils extends this capability to include:
- Functions
- Views
- Materialized Views
- Triggers
- Policies
When you use Alembic Utils, the alembic revision --autogenerate command will automatically detect if these entities are new, updated, or removed, and populate the upgrade and downgrade sections of your migration scripts accordingly.