From ba24281f220bf9ad355a14eeaf56b59497923054 Mon Sep 17 00:00:00 2001 From: azivner Date: Sun, 5 Nov 2017 18:59:58 -0500 Subject: [PATCH] fixed bug where migrations were not processed sequentially --- services/migration.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/migration.js b/services/migration.js index 1358f9c3c..60b1542f5 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');