From c1c4d93dcea9d829523973b56280457d973d2174 Mon Sep 17 00:00:00 2001 From: Chareice Date: Mon, 4 Mar 2024 20:44:00 +0800 Subject: [PATCH] fix: data source collection dump rules --- .../src/server/collections/data-sources-collections.ts | 1 + .../src/server/collections/data-sources-fields.ts | 1 + .../src/server/collections/data-sources-roles.ts | 1 + .../src/server/collections/data-sources.ts | 1 + 4 files changed, 4 insertions(+) diff --git a/packages/plugins/@nocobase/plugin-data-source-manager/src/server/collections/data-sources-collections.ts b/packages/plugins/@nocobase/plugin-data-source-manager/src/server/collections/data-sources-collections.ts index 439cab83a..d55a4a5b0 100644 --- a/packages/plugins/@nocobase/plugin-data-source-manager/src/server/collections/data-sources-collections.ts +++ b/packages/plugins/@nocobase/plugin-data-source-manager/src/server/collections/data-sources-collections.ts @@ -3,6 +3,7 @@ import { defineCollection } from '@nocobase/database'; export default defineCollection({ name: 'dataSourcesCollections', model: 'DataSourcesCollectionModel', + dumpRules: 'required', shared: true, autoGenId: false, timestamps: false, diff --git a/packages/plugins/@nocobase/plugin-data-source-manager/src/server/collections/data-sources-fields.ts b/packages/plugins/@nocobase/plugin-data-source-manager/src/server/collections/data-sources-fields.ts index bb9e30f06..040822e18 100644 --- a/packages/plugins/@nocobase/plugin-data-source-manager/src/server/collections/data-sources-fields.ts +++ b/packages/plugins/@nocobase/plugin-data-source-manager/src/server/collections/data-sources-fields.ts @@ -3,6 +3,7 @@ import { defineCollection } from '@nocobase/database'; export default defineCollection({ name: 'dataSourcesFields', model: 'DataSourcesFieldModel', + dumpRules: 'required', shared: true, autoGenId: false, timestamps: false, diff --git a/packages/plugins/@nocobase/plugin-data-source-manager/src/server/collections/data-sources-roles.ts b/packages/plugins/@nocobase/plugin-data-source-manager/src/server/collections/data-sources-roles.ts index d441a930d..ecd3339e4 100644 --- a/packages/plugins/@nocobase/plugin-data-source-manager/src/server/collections/data-sources-roles.ts +++ b/packages/plugins/@nocobase/plugin-data-source-manager/src/server/collections/data-sources-roles.ts @@ -2,6 +2,7 @@ import { defineCollection } from '@nocobase/database'; export default defineCollection({ name: 'dataSourcesRoles', + dumpRules: 'required', autoGenId: false, timestamps: false, model: 'DataSourcesRolesModel', diff --git a/packages/plugins/@nocobase/plugin-data-source-manager/src/server/collections/data-sources.ts b/packages/plugins/@nocobase/plugin-data-source-manager/src/server/collections/data-sources.ts index 67aca4914..8a4eb89e2 100644 --- a/packages/plugins/@nocobase/plugin-data-source-manager/src/server/collections/data-sources.ts +++ b/packages/plugins/@nocobase/plugin-data-source-manager/src/server/collections/data-sources.ts @@ -5,6 +5,7 @@ export default defineCollection({ model: 'DataSourceModel', autoGenId: false, shared: true, + dumpRules: 'required', fields: [ { type: 'string',