mirror of
https://gitee.com/nocobase/nocobase.git
synced 2024-11-30 11:18:36 +08:00
Merge branch 'main' into next
# Conflicts: # packages/core/database/src/database.ts
This commit is contained in:
commit
b4c9cd988b
@ -41,6 +41,7 @@ import { referentialIntegrityCheck } from './features/referential-integrity-chec
|
||||
import { ArrayFieldRepository } from './field-repository/array-field-repository';
|
||||
import * as FieldTypes from './fields';
|
||||
import { Field, FieldContext, RelationField } from './fields';
|
||||
import { checkDatabaseVersion } from './helpers';
|
||||
import { InheritedCollection } from './inherited-collection';
|
||||
import InheritanceMap from './inherited-map';
|
||||
import { InterfaceManager } from './interface-manager';
|
||||
@ -848,8 +849,7 @@ export class Database extends EventEmitter implements AsyncEmitter {
|
||||
* @internal
|
||||
*/
|
||||
async checkVersion() {
|
||||
return true;
|
||||
// return await checkDatabaseVersion(this);
|
||||
return process.env.DB_SKIP_VERSION_CHECK === 'on' || (await checkDatabaseVersion(this));
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user