
/*------ ATD 479246 ------*/
IF NOT EXISTS (SELECT 1 FROM INFORMATION_SCHEMA.COLUMNS WHERE TABLE_NAME = 'COMPLNFFAT' AND COLUMN_NAME = 'dPrevEntrega')
BEGIN
	ALTER TABLE COMPLNFFAT ADD dPrevEntrega DATETIME
END
GO

IF NOT EXISTS (SELECT 1 FROM INFORMATION_SCHEMA.COLUMNS WHERE TABLE_NAME = 'DADOSNOTATRIBUTOS' AND COLUMN_NAME = 'dPrevEntrega')
BEGIN
	ALTER TABLE DADOSNOTATRIBUTOS ADD dPrevEntrega DATETIME
END
GO