From 05ed569d213bacbd89e6d4ef3750f081091b5fb0 Mon Sep 17 00:00:00 2001 From: chenos Date: Fri, 17 Mar 2023 15:28:53 +0800 Subject: [PATCH] fix(tree-collection): onDelete: CASCADE --- packages/core/client/src/collection-manager/templates/tree.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/core/client/src/collection-manager/templates/tree.tsx b/packages/core/client/src/collection-manager/templates/tree.tsx index a89a78193..0cc7b47ad 100644 --- a/packages/core/client/src/collection-manager/templates/tree.tsx +++ b/packages/core/client/src/collection-manager/templates/tree.tsx @@ -27,6 +27,7 @@ export const tree: ICollectionTemplate = { name: 'parent', foreignKey: 'parentId', treeParent: true, + onDelete: 'CASCADE', uiSchema: { title: '{{t("Parent")}}', 'x-component': 'RecordPicker', @@ -46,6 +47,7 @@ export const tree: ICollectionTemplate = { name: 'children', foreignKey: 'parentId', treeChildren: true, + onDelete: 'CASCADE', uiSchema: { title: '{{t("Children")}}', 'x-component': 'RecordPicker',