
/*------ ATD 335485 ------*/
IF NOT EXISTS (SELECT * FROM INFORMATION_SCHEMA.COLUMNS WHERE table_name = 'OPEVIPILIF' and column_name = 'INDICADORORIGEM')
ALTER TABLE OPEVIPILIF ADD INDICADORORIGEM CHAR(1)
go

IF NOT EXISTS (SELECT * FROM INFORMATION_SCHEMA.COLUMNS WHERE table_name = 'OPEVIPILIF' and column_name = 'NUMERODOCUMENTO')
ALTER TABLE OpEvIPILiF ADD NUMERODOCUMENTO VARCHAR(20)
go