Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
force migration to 0.60 first before 0.61 #4132
zadam4717242dc7d6
diff --git a/src/services/migration.js b/src/services/migration.jsindex 49da650895..58b910d7ba 100644--- a/src/services/migration.js+++ b/src/services/migration.js@@ -9,8 +9,8 @@ const appInfo = require('./app_info');async function migrate() {const currentDbVersion = getDbVersion();- if (currentDbVersion < 183) {- log.error("Direct migration from your current version is not supported. Please upgrade to the latest v0.47.X first and only then to this version.");+ if (currentDbVersion < 214) {+ log.error("Direct migration from your current version is not supported. Please upgrade to the latest v0.60.X first and only then to this version.");utils.crash();return;@@ -18,9 +18,9 @@ async function migrate() {// backup before attempting migrationawait backupService.backupNow(- // creating a special backup for versions 0.60.X and older, the changes in 0.61 are major.- currentDbVersion < 214- ? `before-migration-v${currentDbVersion}`+ // creating a special backup for versions 0.60.X, the changes in 0.61 are major.+ currentDbVersion === 214+ ? `before-migration-v060`: 'before-migration');