ALTER TABLE c6_bank_inss_cases
    ADD COLUMN tracking_token CHAR(32) NULL AFTER loan_proposal_id;

UPDATE c6_bank_inss_cases
SET tracking_token = REPLACE(UUID(), '-', '')
WHERE tracking_token IS NULL;

ALTER TABLE c6_bank_inss_cases
    MODIFY tracking_token CHAR(32) NOT NULL,
    ADD UNIQUE KEY idx_c6_inss_tracking (tracking_token);
