
/*------ ATD 470004 ------*/
-- Adicionando coluna DATAENTREGA na tabela VendasRepresentacaoItem
IF NOT EXISTS (SELECT 1 FROM INFORMATION_SCHEMA.COLUMNS WHERE TABLE_NAME = 'VendasRepresentacaoItem' AND COLUMN_NAME = 'DATAENTREGA')
alter TABLE dbo.VendasRepresentacaoItem add DATAENTREGA DATETIME
go