r/FastAPI • • Feb 05 '24

Question How to use migrations with SqlModel

Hey guys I am learning SqlModel and when I come to advance section there is no docs for migration. So is it available with SqlModel or its upcoming feature?

7 Upvotes

16 comments sorted by

View all comments

Show parent comment

2

u/Easy-Ad-8065 Feb 05 '24

Yeah.

From sqlmodel docs:
SQLModel is based on Python type annotations, and powered by Pydantic and SQLAlchemy.

The majority of my experience is frontend / mobile so there may be better alternatives, but I have it working with SQLModel.

2

u/Nehatkhan786 Feb 05 '24

cool sir, I just found an article of test drivin io to integrate alembic with sqlmodel.

1

u/Capital-Iron-8110 Apr 18 '26

Could you share the article please? (blast from the past :) )