IF NOT EXISTS  (SELECT 1 FROM SYS.COLUMNS WHERE NAME ='FLAG_NAO_GERAR_COD_TERCEIRO_PROSOFT' AND OBJECT_ID =OBJECT_ID('PG_FORN_CNT_CTB') )
BEGIN 
	ALTER TABLE PG_FORN_CNT_CTB ADD FLAG_NAO_GERAR_COD_TERCEIRO_PROSOFT INT NULL
END