Welcome to Alembic’s documentation!¶
Alembic is a lightweight database migration tool for usage with the SQLAlchemy Database Toolkit for Python.
- Front Matter
- Tutorial
- Auto Generating Migrations
- Generating SQL Scripts (a.k.a. “Offline Mode”)
- The Importance of Naming Constraints
- Running “Batch” Migrations for SQLite and Other Databases
- Working with Branches
- Operation Reference
- Cookbook
- Building an Up to Date Database from Scratch
- Conditional Migration Elements
- Sharing a Connection with a Series of Migration Commands and Environments
- Replaceable Objects
- Don’t Generate Empty Migrations with Autogenerate
- Don’t emit CREATE TABLE statements for Views
- Run Multiple Alembic Environments from one .ini file
- API Details
- Changelog