mirror of
https://github.com/nocobase/nocobase.git
synced 2026-10-29 18:16:18 +08:00
fix(migration): version (#8701)
This commit is contained in:
+1
-1
@@ -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');
|
||||
|
||||
+1
-1
@@ -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();
|
||||
|
||||
+1
-1
@@ -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();
|
||||
|
||||
+1
-1
@@ -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');
|
||||
|
||||
+1
-1
@@ -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');
|
||||
|
||||
+1
-1
@@ -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');
|
||||
|
||||
+1
-1
@@ -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) => {
|
||||
|
||||
Reference in New Issue
Block a user