Skip to content

revert(db): remove draft cascade-constraint patch blocking deploy (#2993) - #3003

Merged
jung-thomas merged 1 commit into
DEVfrom
worktree-remove-cascade-patch-unblock
Nov 3, 2026
Merged

jung-thomas merged 1 commit into
DEVfrom
worktree-remove-cascade-patch-unblock

Conversation

@jung-thomas

Copy link
Copy Markdown
Contributor

Why

The #2993 build-time cascade-constraint patch is aborting every MTA deploy at tutorials-db-deployer, and it provides no value right now:

Change

Remove the patch entirely:

  • .deploy/mta.yaml builder line that ran the patch
  • scripts/patch-draft-cascade-constraints.cjs
  • test/unit/patch-draft-cascade-constraints.test.js

No runtime behavior change — the flag was already off, so no constraints were active. YAML validated.

Follow-up

Re-enabling the dad strategy is tracked by #2993 and must first solve the HDI make-graph dependency (the base .hdbtable + .hdbconstraint co-deploy problem), likely via a CAP-native mechanism rather than a hand-rolled build patch.

Related: #2993, #2992, #2909.

🤖 Generated with Claude Code

…d delete is off, blocking deploy (#2993)

The #2993 build patch generated ON DELETE CASCADE constraints for draft tables
to support CAP 10.2's optimized draft deletion (dad strategy /
cds.fiori.draft_admin_integrity). But:

1. The constraints are ONLY needed when draft_admin_integrity is ON. It is
   OFF (#2992) and staying off — orphan cleanup is handled by
   scripts/cleanup-draft-orphans.cjs (#2994) instead. So the constraints
   provide zero value right now.
2. Both delivery forms failed HDI: inline-in-.hdbtable (error 8250014), then
   standalone .hdbconstraint (error 8212001 — the ON <table> clause needs the
   base .hdbtable in the same make graph, which a delta deploy doesn't
   provide). Making it work is unresolved HDI-delta research.
3. It aborts tutorials-db-deployer on every deploy, blocking urgent PROD fixes
   (the #2909 draft-edit fix + #2995/#3000 health-gate fixes) from reaching DEV
   and then prod.

Remove the build-time patch entirely: the .deploy/mta.yaml builder line, the
script, and its unit test. Re-enabling the dad strategy later is tracked by
#2993 and requires solving the HDI make-graph dependency first (likely a
CAP-native constraint mechanism, not a hand-rolled patch).

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
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