mirror of
https://github.com/zadam/trilium.git
synced 2025-01-30 19:08:55 +08:00
fixed bug where migrations were not processed sequentially
This commit is contained in:
parent
232ace0c3f
commit
ba24281f22
1 changed files with 1 additions and 1 deletions
|
@ -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…
Reference in a new issue