mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-07 04:12:04 +00:00
Two gaps stopped a fresh demo seed: - medication_intake_events gained a NOT NULL updated_at column in the v1.7.0 sync keyset work. The raw INSERTs omitted it; set it alongside created_at on every intake row so the seed does not lean on the column's migration-only default. - app_settings carried four columns on the schema (default_locale plus the telegram/ntfy/web-push global toggles) that never landed in the migration history — applied via db push to existing environments but never committed. A database built from migrations alone is missing them, and the admin settings read path selects default_locale, so a fresh deploy reports "column default_locale does not exist" on first read. Add an idempotent ADD COLUMN IF NOT EXISTS drift-fix migration mirroring 0025_user_locale_drift_fix: a no-op where the columns exist, a clean add on a migrations-only build. Verified end to end against a fresh Postgres 16 built from the full migration set: the seed completes and re-runs cleanly.