-- Archive flag for healthchecks the technician no longer needs surfaced. -- -- Boolean stored as INTEGER 0/1 (portable: MySQL has no native BOOLEAN, it's a -- TINYINT alias, and SQLite has no boolean type at all — both store 0/1 in an -- INTEGER column). NOT NULL DEFAULT 0 so every existing row is "not archived" -- and SQLite's ALTER TABLE ADD COLUMN is satisfied (it requires a default for a -- NOT NULL column). -- -- Archived rows are NOT hidden from their normal listings for now; the dashboard -- just additionally gathers them under an "Archived" heading on the home page. ALTER TABLE healthchecks ADD COLUMN archived INTEGER NOT NULL DEFAULT 0;