diff --git a/packages/plugins/@nocobase/plugin-workflow-manual/src/server/__tests__/migrations/20250312100512-change-table-name.test.ts b/packages/plugins/@nocobase/plugin-workflow-manual/src/server/__tests__/migrations/20250312100512-change-table-name.test.ts index 88f9ea4b17..dbaa6093ea 100644 --- a/packages/plugins/@nocobase/plugin-workflow-manual/src/server/__tests__/migrations/20250312100512-change-table-name.test.ts +++ b/packages/plugins/@nocobase/plugin-workflow-manual/src/server/__tests__/migrations/20250312100512-change-table-name.test.ts @@ -7,13 +7,11 @@ * For more information, please refer to: https://www.nocobase.com/agreement. */ -import { createMockServer, MockServer } from '@nocobase/test'; +import { createMockServer } from '@nocobase/test'; import { describe, test } from 'vitest'; import workflowManualTasks from '../../collections/workflowManualTasks'; import Migration from '../../migrations/20250312100512-change-table-name'; -const pgOnly = (schema) => (schema && process.env.DB_DIALECT == 'postgres' ? it : it.skip); - const matrix: [string, string][] = [ // schema, tablePrefix [undefined, undefined], @@ -24,7 +22,10 @@ const matrix: [string, string][] = [ function matrixTest() { for (const [schema, tablePrefix] of matrix) { - pgOnly(schema)(`schema: ${schema}, tablePrefix: ${tablePrefix}`, async () => { + if (schema && process.env.DB_DIALECT !== 'postgres') { + continue; + } + test(`schema: ${schema}, tablePrefix: ${tablePrefix}`, async () => { const app = await createMockServer({ database: { schema, diff --git a/packages/plugins/@nocobase/plugin-workflow-manual/src/server/migrations/20250312100512-change-table-name.ts b/packages/plugins/@nocobase/plugin-workflow-manual/src/server/migrations/20250312100512-change-table-name.ts index 47146ab10e..13f6e3d281 100644 --- a/packages/plugins/@nocobase/plugin-workflow-manual/src/server/migrations/20250312100512-change-table-name.ts +++ b/packages/plugins/@nocobase/plugin-workflow-manual/src/server/migrations/20250312100512-change-table-name.ts @@ -10,7 +10,7 @@ import { Migration } from '@nocobase/server'; export default class extends Migration { - appVersion = '<1.6.2'; + appVersion = '<1.7.0'; on = 'beforeLoad'; async up() { const { db } = this.context;