From 6a7240816e7a241d16147507881897d3f01d0800 Mon Sep 17 00:00:00 2001 From: chenos Date: Wed, 13 Sep 2023 17:21:42 +0800 Subject: [PATCH] fix: collection remove field after migrated --- .../server/migrations/20230225111112-drop-ui-schema-relation.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/plugins/@nocobase/plugin-collection-manager/src/server/migrations/20230225111112-drop-ui-schema-relation.ts b/packages/plugins/@nocobase/plugin-collection-manager/src/server/migrations/20230225111112-drop-ui-schema-relation.ts index 9f6bb3e2c..cd410c70a 100644 --- a/packages/plugins/@nocobase/plugin-collection-manager/src/server/migrations/20230225111112-drop-ui-schema-relation.ts +++ b/packages/plugins/@nocobase/plugin-collection-manager/src/server/migrations/20230225111112-drop-ui-schema-relation.ts @@ -22,6 +22,7 @@ export default class extends Migration { const exists = await field.existsInDb({ transaction }); if (!exists) { + collection.removeField('uiSchemaUid'); return; }