-- in_grain flags dimension/date columns that define the display grain: the -- forecast load is pre-aggregated to the flagged columns instead of shipping raw -- rows. See pf_spec.md -> Display-grain pre-aggregation. -- -- Already applied by hand on the original dev database before migrations existed; -- IF NOT EXISTS keeps replay safe there. New migrations should not need the guard. ALTER TABLE pf.col_meta ADD COLUMN IF NOT EXISTS in_grain boolean NOT NULL DEFAULT false;