mirror of
https://github.com/zadam/trilium.git
synced 2025-02-24 15:05:31 +08:00
allow ignoring DB version for skipping uncritical migrations in case of a downgrade
This commit is contained in:
parent
b4ac41eff8
commit
7609bc78ec
1 changed files with 1 additions and 1 deletions
|
@ -102,7 +102,7 @@ function isDbUpToDate() {
|
||||||
async function migrateIfNecessary() {
|
async function migrateIfNecessary() {
|
||||||
const currentDbVersion = getDbVersion();
|
const currentDbVersion = getDbVersion();
|
||||||
|
|
||||||
if (currentDbVersion > appInfo.dbVersion) {
|
if (currentDbVersion > appInfo.dbVersion && process.env.TRILIUM_IGNORE_DB_VERSION !== 'true') {
|
||||||
log.error(`Current DB version ${currentDbVersion} is newer than app db version ${appInfo.dbVersion} which means that it was created by newer and incompatible version of Trilium. Upgrade to latest version of Trilium to resolve this issue.`);
|
log.error(`Current DB version ${currentDbVersion} is newer than app db version ${appInfo.dbVersion} which means that it was created by newer and incompatible version of Trilium. Upgrade to latest version of Trilium to resolve this issue.`);
|
||||||
|
|
||||||
utils.crash();
|
utils.crash();
|
||||||
|
|
Loading…
Reference in a new issue