Skip to content

Add foreign-key constraint to build siteid column - #3990

Merged
josephsnyder merged 1 commit into
Kitware:masterfrom
williamjallen:build-siteid-foreign-key-constraint
Sep 11, 2026
Merged

Add foreign-key constraint to build siteid column#3990
josephsnyder merged 1 commit into
Kitware:masterfrom
williamjallen:build-siteid-foreign-key-constraint

Conversation

@williamjallen

Copy link
Copy Markdown
Collaborator

The siteid column currently doesn't have a foreign-key constraint because the submission process currently creates builds before sites in some cases. This PR gets us closer to the eventual goal of a NOT NULL foreign-key constraint by making the column nullable and adding a foreign key constraint. Sometime in the future, this can be upgraded to NOT NULL for stricter schema compliance.

The `siteid` column currently doesn't have a foreign-key constraint because the submission process currently creates builds before sites in some cases.  This PR gets us closer to the eventual goal of a `NOT NULL` foreign-key constraint by making the column nullable and adding a foreign key constraint.  Sometime in the future, this can be upgraded to `NOT NULL` for stricter schema compliance.
@josephsnyder
josephsnyder added this pull request to the merge queue Sep 11, 2026
Merged via the queue into Kitware:master with commit 11e3162 Sep 11, 2026
7 checks passed
@williamjallen
williamjallen deleted the build-siteid-foreign-key-constraint branch September 11, 2026 13:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants