mirror of
https://github.com/zadam/trilium.git
synced 2025-11-18 03:00:41 +01:00
added integrity check button into advanced options.
This commit is contained in:
@@ -22,6 +22,16 @@ function vacuumDatabase() {
|
||||
log.info("Database has been vacuumed.");
|
||||
}
|
||||
|
||||
function checkIntegrity() {
|
||||
const results = sql.getRows("PRAGMA integrity_check");
|
||||
|
||||
log.info("Integrity check result: " + JSON.stringify(results));
|
||||
|
||||
return {
|
||||
results
|
||||
};
|
||||
}
|
||||
|
||||
function findAndFixConsistencyIssues() {
|
||||
consistencyChecksService.runOnDemandChecks(true);
|
||||
}
|
||||
@@ -30,5 +40,6 @@ module.exports = {
|
||||
backupDatabase,
|
||||
vacuumDatabase,
|
||||
findAndFixConsistencyIssues,
|
||||
anonymize
|
||||
anonymize,
|
||||
checkIntegrity
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user