fix(migration): version (#8701)

This commit is contained in:
YANG QIA
2026-02-25 13:50:58 +08:00
committed by GitHub
parent 26274f982e
commit 2d508bcdce
7 changed files with 7 additions and 7 deletions
@@ -11,7 +11,7 @@ import { Migration } from '@nocobase/server';
export default class extends Migration {
on = 'afterLoad'; // 'beforeLoad' or 'afterLoad'
appVersion = '<2.0.0';
appVersion = '<2.1.0';
async up() {
const repo = this.db.getRepository('roles');
@@ -11,7 +11,7 @@ import { Migration } from '@nocobase/server';
export default class extends Migration {
on = 'afterLoad'; // 'beforeLoad' or 'afterLoad'
appVersion = '<2.0.0';
appVersion = '<2.1.0';
async up() {
const aiSettings = await this.db.getRepository('aiSettings').findOne();
@@ -12,7 +12,7 @@ import PluginAIServer from '../plugin';
export default class extends Migration {
on = 'afterSync'; // 'beforeLoad' or 'afterLoad'
appVersion = '<2.0.0';
appVersion = '<2.1.0';
async up() {
await (this.plugin as PluginAIServer).setupBuiltIn();
@@ -11,7 +11,7 @@ import { Migration } from '@nocobase/server';
export default class extends Migration {
on = 'afterSync';
appVersion = '<2.0.0-beta.7';
appVersion = '<2.1.0';
async up() {
const repo = this.db.getRepository('aiEmployees');
@@ -11,7 +11,7 @@ import { Migration } from '@nocobase/server';
export default class extends Migration {
on = 'afterLoad';
appVersion = '<2.0.0';
appVersion = '<2.1.0';
async up() {
const collection = this.db.getCollection('llmServices');
@@ -11,7 +11,7 @@ import { Migration } from '@nocobase/server';
export default class extends Migration {
on = 'afterLoad'; // 'beforeLoad' or 'afterLoad'
appVersion = '<2.0.0';
appVersion = '<2.1.0';
async up() {
const repo = this.db.getRepository('fields');
@@ -11,7 +11,7 @@ import { Migration } from '@nocobase/server';
export default class extends Migration {
on = 'afterLoad';
appVersion = '<2.0.0';
appVersion = '<2.1.0';
async up() {
await this.db.sequelize.transaction(async (transaction) => {