
/*------ ATD 232399 ------*/
/* PA 232399 (Kopell) */
IF NOT EXISTS (SELECT 1 FROM SYSCOLUMNS WHERE NAME = 'BaseExcedente' AND SYSCOLUMNS.ID IN (SELECT ID FROM SYSOBJECTS WHERE XTYPE='U' AND NAME='CFOSaidCad'))
ALTER TABLE CFOSaidCad ADD BaseExcedente NUMERIC(15,2) NOT NULL DEFAULT 0
GO
IF NOT EXISTS (SELECT 1 FROM SYSCOLUMNS WHERE NAME = 'BaseExcedente' AND SYSCOLUMNS.ID IN (SELECT ID FROM SYSOBJECTS WHERE XTYPE='U' AND NAME='CFOEntrCad'))
ALTER TABLE CFOEntrCad ADD BaseExcedente NUMERIC(15,2) NOT NULL DEFAULT 0
GO