Official docs outline
13 sections- Tutorial
Creating an environment, writing and running migrations, revisions, and upgrade/downgrade.
- Auto generating migrations
Comparing model metadata to the database to generate migration scripts, and its limitations.
- Operation reference
Operations such as create_table, add_column, alter_column and execute available in migrations.
- Working with branches
Branching, merging, heads and branch labels for parallel development.
- Generating SQL scripts (offline mode)
Producing SQL output instead of connecting to the database.
- Running batch migrations for SQLite
Move-and-copy table recreation for databases with limited ALTER support.
- Naming constraints
Using naming conventions so constraints can be altered and dropped reliably.
- Cookbook
Recipes for multi-database, environment variables, replaceable objects and conditional migrations.
- The migration environment (env.py)
Runtime API of MigrationContext, EnvironmentContext and customizing env.py.
- Configuration
alembic.ini options, file templates, script location and logging.
- Commands
The command API for revision, upgrade, downgrade, stamp, history and current.
- Multiple version directories
Using multiple base revisions or separate version locations.
- Front matter and architecture
Alembic's relationship to SQLAlchemy, supported databases and dependencies.
Each section links to the official page. Titles and summaries by Extra Credit; the docs belong to their authors.