diff --git a/packages/plugins/ui-schema-storage/src/collections/uiSchemaTemplates.ts b/packages/plugins/ui-schema-storage/src/collections/uiSchemaTemplates.ts index 4d905b5cd..d9afe02cf 100644 --- a/packages/plugins/ui-schema-storage/src/collections/uiSchemaTemplates.ts +++ b/packages/plugins/ui-schema-storage/src/collections/uiSchemaTemplates.ts @@ -39,6 +39,7 @@ export default defineCollection({ target: 'collections', foreignKey: 'collectionName', targetKey: 'name', + onDelete: 'CASCADE', }, ], });