IF NOT EXISTS (SELECT * FROM SYS.COLUMNS WHERE NAME ='FLAG_NAO_GERAR_ARQ_SPED' AND OBJECT_ID =OBJECT_ID('EST_NF_ENT'))
    BEGIN
	   ALTER TABLE EST_NF_ENT ADD FLAG_NAO_GERAR_ARQ_SPED INT NOT NULL DEFAULT 0
    END