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');