IF EXISTS (SELECT * FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_NAME = 'ArquivoParaAssinatura') AND COL_LENGTH('[dbo].[ArquivoParaAssinatura]', 'Enviado') IS NULL
BEGIN
  ALTER TABLE [dbo].[ArquivoParaAssinatura] ADD Enviado DATETIME2 NULL;
END

IF EXISTS (SELECT * FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_NAME = 'ArquivoParaAssinatura') AND COL_LENGTH('[dbo].[ArquivoParaAssinatura]', 'UsuarioId') IS NULL
BEGIN
  ALTER TABLE [dbo].[ArquivoParaAssinatura] ADD UsuarioId BIGINT NULL;
END