IF COL_LENGTH('[dbo].[documento]', 'pasta') IS NOT NULL
BEGIN
  ALTER TABLE [dbo].[documento] ALTER COLUMN pasta VARCHAR(15);
END