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
fixed bug where migrations were not processed sequentially
azivnerba24281f220b
diff --git a/services/migration.js b/services/migration.jsindex 1358f9c3cc..60b1542f54 100644--- a/services/migration.js+++ b/services/migration.js@@ -35,7 +35,7 @@ async function migrate() {}});- migrations.sort((a, b) => a.db_version - b.db_version);+ migrations.sort((a, b) => a.dbVersion - b.dbVersion);for (const mig of migrations) {const migrationSql = fs.readFileSync(MIGRATIONS_DIR + "/" + mig.file).toString('utf8');