Optimize database after running migrations
This commit is contained in:
parent
c98993899a
commit
e08a2fa86c
1 changed files with 4 additions and 0 deletions
|
@ -1993,4 +1993,8 @@ export function updateSchema(db: Database, logger: LoggerType): void {
|
||||||
|
|
||||||
runSchemaUpdate(userVersion, db, logger);
|
runSchemaUpdate(userVersion, db, logger);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (userVersion !== maxUserVersion) {
|
||||||
|
db.pragma('optimize');
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue