mirror of
https://github.com/TriliumNext/Notes.git
synced 2026-04-24 05:39:21 -05:00
more fixes to migration
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user