DO $$
BEGIN
  ALTER TABLE BPE ALTER COLUMN RETORNO_ID TYPE VARCHAR(50);
  
  EXCEPTION WHEN OTHERS THEN NULL;
END
$$;
