Files
homelab-monitor/apps
jhodgkin 7a685b9bd8
CI / web (push) Successful in 18s
CI / api (push) Successful in 23s
fix: SQLite has no ADD COLUMN IF NOT EXISTS, crashed on startup
Conflated CREATE TABLE/INDEX's IF NOT EXISTS support with ALTER
TABLE ADD COLUMN, which SQLite has never supported -- syntax error,
not a version issue (confirmed on 3.49.2). Check pragma table_info
for the column first instead. Verified against both a fresh DB and
one simulating the existing pre-migration production schema, and
confirmed idempotent on a second open.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-07-12 23:05:54 -06:00
..