more fixes to migration

This commit is contained in:
azivner
2017-10-22 20:29:31 -04:00
parent f49963dc67
commit 14625cc613
3 changed files with 16 additions and 15 deletions
+5 -3
View File
@@ -22,9 +22,9 @@ async function migrate() {
const name = match[2];
const migrationRecord = {
'db_version': dbVersion,
'name': name,
'file': file
dbVersion: dbVersion,
name: name,
file: file
};
migrations.push(migrationRecord);
@@ -44,6 +44,8 @@ async function migrate() {
await sql.executeScript(migrationSql);
await sql.setOption("db_version", mig.dbVersion);
await sql.commit();
mig['success'] = true;