-- Remove new fields and type
ALTER TABLE leads
    DROP COLUMN source;

ALTER TABLE lead_events
    DROP COLUMN source;

DROP TYPE source;

-- Rename old fields and types to original names
ALTER TYPE lead_data_source RENAME TO lead_source;

ALTER TABLE leads
    RENAME COLUMN data_source TO source;

ALTER TABLE lead_revisions
    RENAME COLUMN data_source TO source;

ALTER TYPE event_data_source RENAME TO event_source;

ALTER TABLE lead_events
    RENAME COLUMN data_source TO source;
