mirror of
https://github.com/zadam/trilium.git
synced 2025-06-06 18:08:33 +02:00
fixed bug where migrations were not processed sequentially
This commit is contained in:
parent
232ace0c3f
commit
ba24281f22
@ -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');
|
||||
|
Loading…
x
Reference in New Issue
Block a user