Skip to content
Discussion options

You must be logged in to vote

The migration error happens because the migration script expects a foreign key constraint named rule_segments_namespace_key_segment_key_fkey to exist, but in your current schema (v15), the constraint is named rule_segments_namespace_key_fkey and uses ON DELETE CASCADE instead of ON DELETE RESTRICT. The migration tries to drop and recreate this constraint with a new name and behavior, but fails since the expected constraint name doesn't match what's in your DB.

This mismatch likely comes from changes in how constraints were named and managed in earlier migrations. To resolve this, you can manually drop the existing constraint (rule_segments_namespace_key_fkey) and then re-run the migratio…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by markphelps
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant