fix: add SQLite database recovery and WAL mode for corruption resilience

- Add scripts/db-recovery.sh for database integrity check and recovery
- Enable WAL mode verification with logging on startup
- Add structured error logging to uptime handlers with monitor context
- Add comprehensive database maintenance documentation

Fixes heartbeat history showing "No History Available" due to database
corruption affecting 6 out of 14 monitors.
This commit is contained in:
GitHub Actions
2025-12-17 14:46:00 +00:00
parent da4fb33006
commit f094123123
10 changed files with 2762 additions and 1533 deletions
+11
View File
@@ -258,6 +258,17 @@
"command": "scripts/bump_beta.sh",
"group": "none",
"problemMatcher": []
},
{
"label": "Utility: Database Recovery",
"type": "shell",
"command": "scripts/db-recovery.sh",
"group": "none",
"problemMatcher": [],
"presentation": {
"reveal": "always",
"panel": "new"
}
}
]
}