ALTER TABLE queue_tickets
    ADD COLUMN history_anonymized_at timestamptz;

CREATE INDEX queue_tickets_history_anonymized_idx
    ON queue_tickets (history_anonymized_at, id)
    WHERE history_anonymized_at IS NULL;
