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