Integrating Alembic With Sqlalchemy
I'm looking at a way to integrate Alembic with SQLAlchemy. What I need is a way so that Alembic detects any changes I make in models.py automatically and updates it in the MySQL da
Solution 1:
You want to run the revision subcommand with the --autogenerate flag so it inspects the models for changes.
alembic revision --autogenerate -m "some message"
Make sure you're aware of the limitations of the autogenerate option.
Post a Comment for "Integrating Alembic With Sqlalchemy"