migrate command not passing the autogenerate ops #545
Replies: 1 comment 6 replies
-
I think I've figured out the answer. It might be just my code but the value of
but by the time it gets to the defined I do not know if this is a bug in https://github.com/miguelgrinberg/Flask-Migrate/blob/main/tests/custom_template/env.py#L67 but I don't see any specific tests of this path in https://github.com/miguelgrinberg/Flask-Migrate/blob/main/tests/test_migrate.py |
Beta Was this translation helpful? Give feedback.
-
I am migrating from flask-migrate 2.5.3 to the latest. I have updated my env.py file to:
What I am finding is that when I run a function that:
It is no longer passing the
autogenerate
ops to the alembic command. That isgetattr(config.cmd_opts, 'autogenerate', False)
is evaluating to False.I can find no other references to
autogenerate
in the code base so I am wondering if it needs to be passed in somewhere now?Beta Was this translation helpful? Give feedback.
All reactions