Replies: 1 comment 8 replies
-
Are you importing your models? SQLAlchemy registers your models when they are imported. If you do not imported your models anywhere then they are not seen. |
Beta Was this translation helpful? Give feedback.
8 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I have the following project structure:
inside backend/init.py, I do:
And in inside backend.models.init.py, I have:
I want to keep the migrations folder inside backend, and I am using the factory pattern in app.py. If I call the initialization of flask-alembic like
I get the folder created where I want it, however, when then I call
What I get back is, I think, an empty migration:
This is the first time I am using Alembic, as well as Flask-Alembic, so most likely I am doing something wrong... but I cannot point out what. Can somebody give me a hand?
Beta Was this translation helpful? Give feedback.
All reactions