| Alembic | dbwarden |
|---|---|
| alembic.ini + env.py | dbwarden.py config file |
| Revision script (.py) | Migration file (.sql) with upgrade / rollback sections |
| Revision chain as source of truth | SQLAlchemy models as source of truth |
| alembic revision --autogenerate | dbwarden make-migrations "description" |
| alembic upgrade head | dbwarden migrate |
| alembic downgrade -1 | dbwarden rollback |
| alembic stamp <rev> | dbwarden migrate --baseline |
| alembic current | dbwarden status |
| alembic history | dbwarden history |
| alembic upgrade head --sql | export-models + make-migrations --offline |
Two Alembic features have no direct equivalent, and it is worth knowing before you start: Python data migrations (dbwarden manual migrations are SQL) and revision branching and merging (dbwarden uses a linear versioned sequence per database).