Skip to content
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

Make fields nullable again #431

Merged
merged 1 commit into from
Oct 28, 2024
Merged

Conversation

msm-cert
Copy link
Member

@msm-cert msm-cert commented Oct 27, 2024

After #412 the database status is not equivalent to schema in the code, and migrations want to change job_id fields to nullable. In that PR they were changed from a simple Field() to a Field(sa_column=...) which triggered this change.

This means that now trying to create a new migration will add two unrelated changes (job_id for jobagent and match).

This PR bumps sqlmodel and makes them non-nullable again.

@msm-cert msm-cert requested a review from michalkrzem October 27, 2024 18:15
@msm-cert msm-cert force-pushed the fix/restore-field-nullability branch 3 times, most recently from 18cca74 to e1e5704 Compare October 27, 2024 18:30
@msm-cert msm-cert force-pushed the fix/restore-field-nullability branch from e1e5704 to 79a4977 Compare October 27, 2024 18:33
Copy link
Collaborator

@michalkrzem michalkrzem left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes. Right.

@msm-cert msm-cert merged commit acad24d into master Oct 28, 2024
10 checks passed
@msm-cert msm-cert deleted the fix/restore-field-nullability branch October 28, 2024 16:30
mickol34 pushed a commit that referenced this pull request Nov 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants