Skip to content

Build your personal knowledge base with Trilium Notes

fixed bug where migrations were not processed sequentially

azivnerba24281f220b
diff --git a/services/migration.js b/services/migration.js
index 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');