mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-08 12:32:43 +00:00
The original comment claimed that `DEFAULT 0` "only applies to *new* inserts on PostgreSQL — existing rows are not backfilled". That's wrong for PG11+: the fast-path `ADD COLUMN ... DEFAULT` materialises the default for every existing row in O(1) time without rewriting the table. The comment confused future readers about why the Wizard mount treats `NULL` as 0 (defensive against the legacy ambiguity, not because of any general PG behaviour). Rewrite to match reality, and point at Migration 0060 as the follow-on that flips the column to NOT NULL. Fix-O / code-M8.