Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 791
📝 Add migrations section#512
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Uh oh!
There was an error while loading. Please reload this page.
Conversation
📝 Docs preview for commit eb3ca5e at: https://639a800274ad247dd834e997--sqlmodel.netlify.app |
📝 Docs preview for commit 3cf251f at: https://639a88d88095c57f0274e6fd--sqlmodel.netlify.app |
📝 Docs preview for commit feea75f at: https://639a8a3c2fbcf011a10ebd78--sqlmodel.netlify.app |
📝 Docs preview for commit 51d83a6 at: https://639cdd9a18290c00b4ff5209--sqlmodel.netlify.app |
📝 Docs preview for commit 3437837 at: https://639e7f62ce461c1a81789517--sqlmodel.netlify.app |
locomoco28 commented Apr 20, 2023 • edited
Loading Uh oh!
There was an error while loading. Please reload this page.
edited
Uh oh!
There was an error while loading. Please reload this page.
Hello, is this the recommended approach now? Alembic is a little intimidating to me, so I'd prefer to be ensured that Alembic is the migration tool of choice, and to have a tutorial from SQLModel. The previews are a little scuffed with the code blocks ^^ |
guysoft commented Apr 24, 2023 • edited
Loading Uh oh!
There was an error while loading. Please reload this page.
edited
Uh oh!
There was an error while loading. Please reload this page.
Hey, it would be nice to have this in the docs. I am trying to get this to work on my project, and there is barely any documentation on how to use Alembic with SQLModel. I've been trying to read it from the CI, but the code examples are omitted. @locomoco28 Do you know of any other tool to manage migrations? I could not find an alternative, and Alembic seems to be well integrated with sqlalchemy I found only this: |
locomoco28 commented Apr 24, 2023
I unfortunately do not have any experience with any other migration tooling as I'm coming from the NodeJS world and wanted to use SQLModel for pretty much my first Python project at work. Thank you for the resource, I'll look into it in the coming days as we're prioritizing a first running beta for now only :) |
ezeparziale commented Apr 24, 2023
Hello! see my example in https://github.com/ezeparziale/fastapi-sqlmodel |
locomoco28 commented Apr 26, 2023
Hey, thank you both for the resources. It really was easy to set up. I'm using asyncpg (with Appreciate your help! |
sparklog commented May 10, 2024
alembic seems like not work well with sqllite, because that sqllite does not support alter method. |
Diegovsky commented May 22, 2024
|
ezeparziale commented May 22, 2024
|
kayue commented Oct 14, 2024
Confirmed this guide works for me :) |
eden881 commented Jul 30, 2025
I too would love to see this merged (if this is indeed the preferred way to do DB migrations with SQLModel). |
KennanChan commented Aug 18, 2025
I would also like a detailed guide on SQLModel migrations. It's been years—could this be added to the official docs? |
This pull request has a merge conflict that needs to be resolved. |
ezeparziale commented Sep 7, 2025 • edited
Loading Uh oh!
There was an error while loading. Please reload this page.
edited
Uh oh!
There was an error while loading. Please reload this page.
Re-open in #1555 |
I added the migrations section to use SQLModel with alembic.