IF NOT EXISTS (SELECT * FROM SYS.COLUMNS WHERE NAME = 'FILIAL_PROC' AND OBJECT_ID = OBJECT_ID('EST_PROD_CPL_VD_LOTE_PROC_PENDENTE'))
begin
ALTER TABLE dbo.EST_PROD_CPL_VD_LOTE_PROC_PENDENTE ADD
	FILIAL_PROC int NULL
end