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

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

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

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