fix(plugin-workflow): fix migration (#3654)

This commit is contained in:
Junyi 2024-03-08 17:29:35 +08:00 committed by GitHub
parent 02dcb752cb
commit 0bb0396754
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -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;

View File

@ -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({