
/*------ ATD 298737 ------*/
-- Adicionando coluna ID na tabela CFOSAIDCAD
IF NOT EXISTS (SELECT 1 FROM SYSCOLUMNS WHERE name = 'ID' and syscolumns.id IN (SELECT ID FROM SYSOBJECTS WHERE xtype='U' AND name='CFOSAIDCAD')) 
ALTER TABLE CFOSAIDCAD ADD ID INT IDENTITY (1,1) NOT NULL
GO