mirror of
https://github.com/TriliumNext/Notes.git
synced 2026-01-09 22:39:53 -06: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) {
|
||||
const migrationSql = fs.readFileSync(MIGRATIONS_DIR + "/" + mig.file).toString('utf8');
|
||||
|
||||
Reference in New Issue
Block a user