-- Universal-CSV-Import schreibt source = 'csv' (siehe csv_parser/executor _import_blood_pressure).

ALTER TABLE blood_pressure_log DROP CONSTRAINT IF EXISTS blood_pressure_log_source_check;

ALTER TABLE blood_pressure_log ADD CONSTRAINT blood_pressure_log_source_check
    CHECK (source IN ('manual', 'omron', 'apple_health', 'withings', 'csv'));

COMMENT ON COLUMN blood_pressure_log.source IS
    'manual | omron | apple_health | withings | csv (Universal-CSV-Import)';
