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

Add foreign-key constraints to dynamic analysis tables #2455

Merged

Conversation

williamjallen
Copy link
Collaborator

This PR adds a foreign-key constraint to the dynamicanalysisdefect table, as well as associated indexing, in support of #2093. Dynamic analysis results are now cleaned up 100% automatically when their associated build results are removed.

Copy link
Member

@josephsnyder josephsnyder left a comment

Choose a reason for hiding this comment

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

Migration applies without issue to an empty database. LGTM

@josephsnyder josephsnyder added this pull request to the merge queue Sep 27, 2024
Merged via the queue into Kitware:master with commit 5763f74 Sep 27, 2024
6 checks passed
@williamjallen williamjallen deleted the dynamic-analysis-constraints branch September 30, 2024 00:20
zackgalbreath added a commit that referenced this pull request Nov 20, 2024
Remove DELETE statements for table that are now handled by cascading
deletions.

* build2uploadfile was fixed in #1657
* label2buildfailure was fixed in #2452
* dynamicanalysisdefect and label2dynamicanalysis were fixed in #2455
github-merge-queue bot pushed a commit that referenced this pull request Nov 20, 2024
Remove DELETE statements for tables that are now handled by cascading
deletions.

* build2uploadfile was fixed in #1657
* label2buildfailure was fixed in #2452
* dynamicanalysisdefect and label2dynamicanalysis were fixed in #2455
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