1
0
Fork
You've already forked cms
0

References and delete guards #53

Merged
ernstla merged 4 commits from feature/references-and-delete-guards into main 2026年07月06日 14:46:59 +02:00
No description provided.
asset_references (FK RESTRICT delete guard) and node_references,
owner-generic and rebuildable: Scanner walks stored content (media
items, blocks, entries, richtext carriers), Sync full-replaces per
owner with dangling uids skipped, Rebuild rescans nodes and menu
images. Migration 021 creates and populates; php run db:references
is the recovery path.
Store::persist replaces the owner's rows inside the save transaction;
the node delete script drops them with the soft-delete, so deleted
nodes never block asset deletion.
DELETE /media/{uid}: usage check answers 409 with a display-ready
owner list, the RESTRICT FK backstops races (SQLSTATE 23001), and a
successful delete removes the catalog row, the pool directory, and
the rendition cache.
Document the reference indexes and delete guard
Some checks failed
ci / ci (push) Failing after 2m24s
770622fd74
ernstla deleted branch feature/references-and-delete-guards 2026年07月06日 14:47:00 +02:00
Sign in to join this conversation.
No reviewers
Milestone
Clear milestone
No items
No milestone
Projects
Clear projects
No items
No project
Assignees
Clear assignees
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
cosray/cms!53
Reference in a new issue
cosray/cms
No description provided.
Delete branch "feature/references-and-delete-guards"

Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?