
/*------ ATD 435825 ------*/
-- Adicionando coluna AGUARDA_CONFERENCIA na tabela NFENTRACAD
IF NOT EXISTS (SELECT 1 FROM SYSCOLUMNS WHERE name = 'AGUARDA_CONFERENCIA' and syscolumns.id IN (SELECT ID FROM SYSOBJECTS WHERE xtype='U' AND name='NFENTRACAD')) 
ALTER TABLE NFENTRACAD ADD AGUARDA_CONFERENCIA TINYINT
go