Skip to content

Add foreign-key constraint to build parentid - #3991

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

williamjallen merged 1 commit into
Kitware:masterfrom
williamjallen:build-parentid-foreign-key-constraint

Conversation

@williamjallen

Copy link
Copy Markdown
Collaborator

The build parentid column currently uses the magic values 0 and -1 to represent parent builds. That approach prevented a foreign-key constraint from being added in the past. This PR updates the schema to make the column nullable, add a foreign-key constraint for better referential integrity.

The build `parentid` column currently uses the magic values `0` and `-1` to represent parent builds.  That approach prevented a foreign-key constraint from being added in the past.  This PR updates the schema to make the column nullable, add a foreign-key constraint for better referential integrity.
@josephsnyder
josephsnyder added this pull request to the merge queue Sep 11, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Sep 11, 2026
@williamjallen
williamjallen added this pull request to the merge queue Sep 11, 2026
Merged via the queue into Kitware:master with commit ee4f2d9 Sep 11, 2026
7 checks passed
@williamjallen
williamjallen deleted the build-parentid-foreign-key-constraint branch September 11, 2026 18:38
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