From 0bb0396754e6dca1ee21dbcc0d65bad41243315e Mon Sep 17 00:00:00 2001 From: Junyi Date: Fri, 8 Mar 2024 17:29:35 +0800 Subject: [PATCH] fix(plugin-workflow): fix migration (#3654) --- ...40227172623-change-name.ts => 20240307215012-change-name.ts} | 2 +- ...40227172623-change-name.ts => 20240307214623-change-name.ts} | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) rename packages/plugins/@nocobase/plugin-workflow-action-trigger/src/server/migrations/{20240227172623-change-name.ts => 20240307215012-change-name.ts} (93%) rename packages/presets/nocobase/src/server/migrations/{20240227172623-change-name.ts => 20240307214623-change-name.ts} (89%) diff --git a/packages/plugins/@nocobase/plugin-workflow-action-trigger/src/server/migrations/20240227172623-change-name.ts b/packages/plugins/@nocobase/plugin-workflow-action-trigger/src/server/migrations/20240307215012-change-name.ts similarity index 93% rename from packages/plugins/@nocobase/plugin-workflow-action-trigger/src/server/migrations/20240227172623-change-name.ts rename to packages/plugins/@nocobase/plugin-workflow-action-trigger/src/server/migrations/20240307215012-change-name.ts index b22e508ca..51251ce36 100644 --- a/packages/plugins/@nocobase/plugin-workflow-action-trigger/src/server/migrations/20240227172623-change-name.ts +++ b/packages/plugins/@nocobase/plugin-workflow-action-trigger/src/server/migrations/20240307215012-change-name.ts @@ -1,7 +1,7 @@ import { Migration } from '@nocobase/server'; export default class extends Migration { - appVersion = '<0.20.0-alpha.6'; + appVersion = '<0.20.0-alpha.7'; on = 'afterSync'; async up() { const { db } = this.context; diff --git a/packages/presets/nocobase/src/server/migrations/20240227172623-change-name.ts b/packages/presets/nocobase/src/server/migrations/20240307214623-change-name.ts similarity index 89% rename from packages/presets/nocobase/src/server/migrations/20240227172623-change-name.ts rename to packages/presets/nocobase/src/server/migrations/20240307214623-change-name.ts index 7ed0bc992..83ddb9bb3 100644 --- a/packages/presets/nocobase/src/server/migrations/20240227172623-change-name.ts +++ b/packages/presets/nocobase/src/server/migrations/20240307214623-change-name.ts @@ -2,7 +2,7 @@ import { Migration } from '@nocobase/server'; export default class extends Migration { on = 'beforeLoad'; // 'beforeLoad' or 'afterLoad' - appVersion = '<0.20.0-alpha.6'; + appVersion = '<0.20.0-alpha.7'; async up() { await this.pm.repository.destroy({