ALTER TABLE users
  ALTER COLUMN idp_user_id TYPE VARCHAR(128)
  USING CASE
    WHEN idp_user_id IS NULL THEN NULL
    ELSE idp_user_id::text
  END;
