Optimize database after running migrations
This commit is contained in:
@@ -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');
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user