Files
buzz/crates
Elrond 29ce01de84 buzz-db: pin explicit FK-child cleanup and same-workflow fire links
Audit every remaining ON DELETE CASCADE / SET NULL foreign key (BUZZ-320)
against the supported parent-removal paths, with FK actions retired in the
per-test schema:

- attach_scheduled_workflow_run now links a scheduled fire only to a run of
  the same workflow, so a cross-workflow link can never block an explicit
  run delete once FK actions are dropped.
- The community purge test seeds channel members, personal-read frontiers,
  owner/agent users, product feedback and an executor heartbeat, races a
  held child-insert transaction against quiescing, and requires explicit
  removal (or provenance clearing) of every child with no FK action.
- The manifest-key lifecycle test runs on the retired-FK schema.

FK constraints, actions, triggers and checks are unchanged; a later
migration drops the actions.

Signed-off-by: Elrond <28d6302a099e5225b02c4155ac4236e4912603df2ab08dbfc2f4fef08ce598c8@buzz.block.builderlab.xyz>
2026-10-16 09:55:05 -04:00
..