mirror of
https://github.com/zadam/trilium.git
synced 2025-11-01 19:05:59 +01:00
db upgrades are now handled transparently in the background without bothering the user, closes #119
This commit is contained in:
@@ -42,7 +42,10 @@ const dbReady = new Promise((resolve, reject) => {
|
||||
}
|
||||
|
||||
if (!await isDbUpToDate()) {
|
||||
return;
|
||||
// avoiding circular dependency
|
||||
const migrationService = require('./migration');
|
||||
|
||||
await migrationService.migrate();
|
||||
}
|
||||
|
||||
resolve(db);
|
||||
|
||||
Reference in New Issue
Block a user