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

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

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

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

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

IF COL_LENGTH('[dbo].[item]', 'tipoendosso') IS NULL
BEGIN
  ALTER TABLE [dbo].[item] ADD tipoendosso INTEGER NULL;
END