
/*------ ATD 359455 ------*/
-- Tabela CONTROLEBOLETOEMAIL coluna rCONTAARECEBER
IF NOT EXISTS (SELECT 1 FROM INFORMATION_SCHEMA.COLUMNS WHERE TABLE_NAME = 'CONTROLEBOLETOEMAIL' AND COLUMN_NAME = 'RCONTAARECEBER') 
alter TABLE dbo.CONTROLEBOLETOEMAIL add RCONTAARECEBER INT
go
-- Tabela HISTORICOBOLETOEMAIL coluna HISTORICO - Aumentar para 1000
IF EXISTS (SELECT 1 FROM SYSCOLUMNS C JOIN SYSOBJECTS T ON C.ID = T.ID AND T.XTYPE = 'U'
WHERE T.NAME = 'HISTORICOBOLETOEMAIL' AND C.NAME = 'HISTORICO' AND C.LENGTH < 1000)
ALTER TABLE HISTORICOBOLETOEMAIL ALTER COLUMN HISTORICO VARCHAR(1000) 
go