-
-
Notifications
You must be signed in to change notification settings - Fork 716
Easy to make mistakes when defining nullable (Field() vs Field(Column()) #464
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
Comments
I overlooked your open issue, currently I am facing the same issue (#466) seems like if the nullable is set outside Column(), this field will be ignored |
If you use the SQLAlchemy column that overrides everything. It's made as an escape hatch so that you can take the wheel and SQLModel won't interfere. |
@tiangolo why is |
Thank you! It was indeed error-prone, I added #681 to solve it. Now it's not possible to combine It will be available in the next version, |
Assuming the original need was handled, this will be automatically closed now. But feel free to add more comments or create new issues or PRs. |
First Check
Commit to Help
Example Code
Alembic creates the table as following:
The text was updated successfully, but these errors were encountered: