From c6e1fd2d5f446e507de80fc98f547dfb4dcd3737 Mon Sep 17 00:00:00 2001 From: chenos Date: Wed, 27 Jan 2021 11:24:23 +0800 Subject: [PATCH] fix: set onDelete CASCADE --- .../plugin-permissions/src/collections/fields_permissions.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/plugin-permissions/src/collections/fields_permissions.ts b/packages/plugin-permissions/src/collections/fields_permissions.ts index 724dc527d..c22a2a0d5 100644 --- a/packages/plugin-permissions/src/collections/fields_permissions.ts +++ b/packages/plugin-permissions/src/collections/fields_permissions.ts @@ -12,7 +12,8 @@ export default { }, { type: 'belongsTo', - name: 'field' + name: 'field', + onDelete: 'CASCADE', }, { type: 'jsonb',