Replies: 2 comments 2 replies
-
Hi, I don't see what that flag would be supported to do. The metadata used by sqlmodel needs to be provided to alembic by modifying the |
Beta Was this translation helpful? Give feedback.
2 replies
-
No modifications to alembic are needed to support SQLmodel, the stackoverflow post shows ordinary changes to the env.py file to locate the metadata collection. SQLModel can provide out of the box integration for this by providing a custom template. See flask-sqlalchemy for how this can be done |
Beta Was this translation helpful? Give feedback.
0 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.
-
Currently alembic only supports the models written in SqlAlchemy , there is some hack around making it compatible with sqlmodel
reference : https://stackoverflow.com/questions/68932099/how-to-get-alembic-to-recognise-sqlmodel-database-model
we can integrate it to alembic itself with a configuration parameter for e.g sqlmodel = true
and generate migrations accordingly .....
Beta Was this translation helpful? Give feedback.
All reactions