feat(store): add hosts.always_on flag (default on)

This commit is contained in:
2026-06-15 20:53:13 +01:00
parent 9d16e3f7e3
commit ff65d39f25
4 changed files with 80 additions and 4 deletions
@@ -0,0 +1,6 @@
-- 0024: distinguish always-on (24x7 server) hosts from intermittent
-- hosts (laptops/workstations that legitimately sleep). Default 1 so
-- every existing and future host keeps today's offline/alert
-- semantics unless explicitly opted out. Column-level ALTER per the
-- repo's migration rules (no table rebuild — hosts has inbound FKs).
ALTER TABLE hosts ADD COLUMN always_on INTEGER NOT NULL DEFAULT 1;