IF COL_LENGTH('[dbo].[granizo]', 'datacriacao') IS NULL
BEGIN
  ALTER TABLE [dbo].[granizo] ADD datacriacao DATETIME2 NULL;
END

IF COL_LENGTH('[dbo].[granizo]', 'usuariocriacao') IS NULL
BEGIN
  ALTER TABLE [dbo].[granizo] ADD usuariocriacao BIGINT NULL;
END

IF COL_LENGTH('[dbo].[granizo]', 'dataalteracao') IS NULL
BEGIN
  ALTER TABLE [dbo].[granizo] ADD dataalteracao DATETIME2 NULL;
END

IF COL_LENGTH('[dbo].[granizo]', 'usuarioalteracao') IS NULL
BEGIN
  ALTER TABLE [dbo].[granizo] ADD usuarioalteracao BIGINT NULL;
END
