Add multi-protocol checks and details storage

This commit is contained in:
nmemmert committed 2025-12-10 11:21:14 -05:00
1 parent 5b03cfb977
commit 7c2fd6163c
5 files changed
+266 -10

No files matched your search

+8
View File
@@ -41,4 +41,12 @@ db.exec(`
CREATE INDEX IF NOT EXISTS idx_incidents_resource_id ON incidents(resource_id);
`);
// Lightweight migration: add details column for per-check metadata if missing
try {
db.prepare("ALTER TABLE checks ADD COLUMN details TEXT").run();
// Column added
} catch (err) {
// Ignore if the column already exists
}
module.exports = db;