mirror of
https://github.com/zadam/trilium.git
synced 2025-11-03 11:56:01 +01:00
fixed bug where migrations were not processed sequentially
This commit is contained in:
@@ -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) {
|
for (const mig of migrations) {
|
||||||
const migrationSql = fs.readFileSync(MIGRATIONS_DIR + "/" + mig.file).toString('utf8');
|
const migrationSql = fs.readFileSync(MIGRATIONS_DIR + "/" + mig.file).toString('utf8');
|
||||||
|
|||||||
Reference in New Issue
Block a user