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

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

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

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