Add multi-protocol checks and details storage
This commit is contained in:
1 parent
5b03cfb977
commit
7c2fd6163c
5 files changed
+266
-10
No files matched your search
@@ -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;
|
||||
Reference in new issue
Block a user