Merge fix/96-org-fk-cascade -> main #148

Merged
Mark merged 1 commit from fix/96-org-fk-cascade into main 2026-09-12 18:02:50 +00:00
Owner

Auto-opened batch merger.

Auto-opened batch merger.
Add alembic migration for ondelete=CASCADE on organization child FKs (fixes #96)
Some checks failed
CI / Backend Lint & Format (pull_request) Failing after 4s
CI / Golden Fixture Validation (pull_request) Has been skipped
CI / Backend Tests (pull_request) Has been skipped
CI / Backend Security Tests (pull_request) Has been skipped
CI / Frontend Lint (pull_request) Failing after 22s
CI / Frontend Tests (pull_request) Has been skipped
CI / Dependency Security Scan (pull_request) Has been skipped
Stress Tests / Stress & Pipeline Tests (pull_request) Failing after 6s
Stress Tests / Full Data Pipeline Validation (pull_request) Has been skipped
Performance Regression Tests / Performance Regression Detection (pull_request) Failing after 33s
CI / Frontend E2E Tests (pull_request) Has been skipped
Performance Regression Tests / Compare with Baseline (pull_request) Has been skipped
CI / All Checks Passed (pull_request) Failing after 49s
c91c21963d
Drop and recreate the organization_email/phone/domain org_id foreign keys
with ON DELETE CASCADE so deleting an organization cascades to its child
rows instead of raising a foreign-key violation.

Verified against scratch Postgres 16 (create_all schema path):
- upgrade head applies cleanly on fresh + pre-seeded DBs
- DELETE FROM organization cascades to child rows (2 emails/1 phone/1 domain removed)
- downgrade -1 restores NO ACTION FKs
Mark merged commit bf6a0fb40b into main 2026-09-12 18:02:50 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Mark/osint-hub!148
No description provided.