Skip to content

fix(change-capture): restore FK checks after cascade capture - #166

Open
avabbbb wants to merge 1 commit into
mainfrom
fix/change-capture-fk-restore
Open

avabbbb wants to merge 1 commit into
mainfrom
fix/change-capture-fk-restore

Conversation

@avabbbb

@avabbbb avabbbb commented Oct 27, 2026

Copy link
Copy Markdown
Owner

Fixes the red Backend tests on main and every branch based on it: tests/test_change_capture.py::test_delete_with_cascade_and_later_edit_are_seen fails with sqlite3.IntegrityError FOREIGN KEY constraint failed. Split out of PR 165. Once merged, 162 and 165 should go green after a rebase.

Replaying captured changes in reverse can re-insert a child row before its deleted parent; PRAGMA defer_foreign_keys checks constraints once at commit. Fixes test_delete_with_cascade_and_later_edit_are_seen (the FK failure that kept CI red).

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant