In my project, jars in some model definitions use sqlalchemy_utils, which leads to migration errors, for example:
NameError: global name 'sqlalchemy_utils' is not defined
due to the fact that this package is not imported into migration files.
I would like flask-migrate / alembic to automatically generate strings importing this package into migration files, how can I achieve this?
I looked at alembic.ini and migrations / env.py - but it did not seem to me that this is the correct way / if at all possible.
python flask alembic flask-migrate
David simic
source share