-
-
Notifications
You must be signed in to change notification settings - Fork 684
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
📝 Add migrations section #512
base: main
Are you sure you want to change the base?
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 |
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 ^^ |
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: |
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 :) |
Hello! see my example in https://github.com/ezeparziale/fastapi-sqlmodel |
Hey, thank you both for the resources. It really was easy to set up. I'm using asyncpg (with Appreciate your help! |
alembic seems like not work well with sqllite, because that sqllite does not support alter method. |
|
|
Confirmed this guide works for me :) |
I added the migrations section to use SQLModel with alembic.