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

chore(environments): Make team.project_id officially non-null #25597

Merged
merged 10 commits into from
Oct 18, 2024

Conversation

Twixes
Copy link
Collaborator

@Twixes Twixes commented Oct 15, 2024

Changes

Team.project_id has been de facto non-nullable since #23593. The only reason that PR couldn't officially mark it as non-nullable is that we had to go the CONSTRAINT ... NOT VALID/VALIDATE CONSTRAINT route to avoid locking the table, so we haven't verified existing rows. In this PR we finally run VALIDATE CONSTRAINTS to complete the job.

Removes the need for a bunch of pointless team.project_id is not None assertions.

@Twixes Twixes requested a review from aspicer October 15, 2024 13:17
@Twixes Twixes requested review from a team and removed request for aspicer October 17, 2024 11:51
Copy link
Contributor

@aspicer aspicer left a comment

Choose a reason for hiding this comment

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

🫰 constraints!

@Twixes Twixes enabled auto-merge (squash) October 18, 2024 10:18
@Twixes Twixes merged commit 76c3f68 into master Oct 18, 2024
87 checks passed
@Twixes Twixes deleted the project-id-non-null branch October 18, 2024 15:43
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.

2 participants