Skip to content
Snippets Groups Projects

Add ON UPDATE CASCADE to feature_flag_overrides

Created by: camdencheek

We soft-delete feature flags, which updates the feature flag name, which is also the feature flag's primary key. This was a problem because feature flag overrides refer to the flag's name as a foreign key, so when we update the feature flag name to soft delete, it fails with a foreign key constraint violation. This fixes the issue by adding ON UPDATE CASCADE to the foreign key constraint.

Test plan

Added a test for deleting a feature flag with an override.

Merge request reports

Approval is optional

Merged by avatar (Aug 27, 2025 11:15am UTC)

Merge details

  • Changes merged into main with 67df8bb0.
  • Deleted the source branch.

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
Please register or sign in to reply
Loading