351 B
351 B
RatBot
alembic init alembic
In alembic.ini, configure the database URL:
sqlalchemy.url = sqlite:///./test.db
albemic/env.py
from models import Base
target_metadata = Base.metadata
Make migrations
alembic revision --autogenerate -m "Create model XYZ"
Migrate
alembic upgrade head