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

Fix dropping of CWE table failing due to FK constraint #3304

Merged
merged 1 commit into from
Dec 14, 2023

Conversation

nscuro
Copy link
Member

@nscuro nscuro commented Dec 14, 2023

Description

The CWE table is no longer used and is dropped as part of #3284. However, deployments that exist since pre-v4.5.0 still have indexes and FK constraints referring to the CWE table. This PR removes those indexes and FK constraints if they exist.

Addressed Issue

Fixes #3301

Additional Details

N/A

Checklist

  • I have read and understand the contributing guidelines
  • This PR fixes a defect, and I have provided tests to verify that the fix is effective
  • This PR implements an enhancement, and I have provided tests to verify that it works as intended
  • This PR introduces changes to the database model, and I have added corresponding update logic
  • This PR introduces new or alters existing behavior, and I have updated the documentation accordingly

Deployments that exist since pre-v4.5.0 still have indexes and FK constraints referring to the `CWE` table.

Signed-off-by: nscuro <nscuro@protonmail.com>
@nscuro nscuro added the defect Something isn't working label Dec 14, 2023
@nscuro nscuro added this to the 4.11 milestone Dec 14, 2023
@nscuro nscuro merged commit 8de3533 into DependencyTrack:master Dec 14, 2023
8 checks passed
@nscuro nscuro deleted the issue-3301 branch December 14, 2023 23:08
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jan 14, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
defect Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

PSQLException: ERROR: cannot drop table "CWE" because other objects depend on it
1 participant