Loading skill
Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Manages Alembic database schema migrations for SQLModel/FastAPI projects, including generating, applying, and rolling back revisions.
73% 77%+5 ptsof test cases passed
Passed 17 of 22 test cases with the skill, and 16 of 22 without it.
3 of 3 safety checks passed
Not used yet
Expert Alembic migration management for SQLModel/FastAPI projects with safe schema evolution and rollback capabilities.
| Command | Purpose |
|---|---|
alembic init alembic | Initialize Alembic in project |
alembic revision --autogenerate -m "message" | Generate migration from model changes |
alembic revision -m "message" | Create empty migration manually |
alembic upgrade head | Apply all pending migrations |
alembic upgrade +1 | Apply one migration at a time |
alembic downgrade -1 | Rollback last migration |
alembic downgrade base | Rollback all migrations |
alembic current | Show current revision |
alembic history | Show migration history |
alembic init alembic
# alembic.ini
sqlalchemy.url = driver://user:pass@localhost/dbname
file_template = %%(year)s_%%(month).2d_%%(day).2d_%%(hour).2d%%(minute).2d_%%(rev)s_%%(slug)s
timezone = UTC
# alembic/env.py
from logging.config import fileConfig
Skills that do similar work, with their benchmark result.
Next to this one in the catalogue, plus more from the same author.