From 2efbe84fa6b024499b8f666ee0b7c720e07198d0 Mon Sep 17 00:00:00 2001 From: ChengLei Shao Date: Thu, 3 Mar 2022 21:12:18 +0800 Subject: [PATCH] feat: ui-schema-tree-path descendant index (#218) --- .../src/collections/uiSchemaTreePath.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/plugin-ui-schema-storage/src/collections/uiSchemaTreePath.ts b/packages/plugin-ui-schema-storage/src/collections/uiSchemaTreePath.ts index 981a17e48..f0b384f86 100644 --- a/packages/plugin-ui-schema-storage/src/collections/uiSchemaTreePath.ts +++ b/packages/plugin-ui-schema-storage/src/collections/uiSchemaTreePath.ts @@ -1,3 +1,5 @@ +import { CollectionOptions } from '@nocobase/database'; + export default { name: 'uiSchemaTreePath', autoGenId: false, @@ -12,6 +14,7 @@ export default { type: 'string', name: 'descendant', primaryKey: true, + index: true, }, { type: 'integer', @@ -32,4 +35,4 @@ export default { comment: 'sort of node in adjacency', }, ], -}; +} as CollectionOptions;