fix(tree-collection): onDelete: CASCADE
This commit is contained in:
parent
18a75e096c
commit
05ed569d21
@ -27,6 +27,7 @@ export const tree: ICollectionTemplate = {
|
|||||||
name: 'parent',
|
name: 'parent',
|
||||||
foreignKey: 'parentId',
|
foreignKey: 'parentId',
|
||||||
treeParent: true,
|
treeParent: true,
|
||||||
|
onDelete: 'CASCADE',
|
||||||
uiSchema: {
|
uiSchema: {
|
||||||
title: '{{t("Parent")}}',
|
title: '{{t("Parent")}}',
|
||||||
'x-component': 'RecordPicker',
|
'x-component': 'RecordPicker',
|
||||||
@ -46,6 +47,7 @@ export const tree: ICollectionTemplate = {
|
|||||||
name: 'children',
|
name: 'children',
|
||||||
foreignKey: 'parentId',
|
foreignKey: 'parentId',
|
||||||
treeChildren: true,
|
treeChildren: true,
|
||||||
|
onDelete: 'CASCADE',
|
||||||
uiSchema: {
|
uiSchema: {
|
||||||
title: '{{t("Children")}}',
|
title: '{{t("Children")}}',
|
||||||
'x-component': 'RecordPicker',
|
'x-component': 'RecordPicker',
|
||||||
|
Loading…
Reference in New Issue
Block a user