IF NOT EXISTS (SELECT 1 FROM SYS.COLUMNS WHERE NAME ='RPS_GERADO' AND OBJECT_ID = OBJECT_ID('PDV_CUPOM_NAO_FISCAL_EST_RPS'))
BEGIN 
ALTER TABLE dbo.PDV_CUPOM_NAO_FISCAL_EST_RPS ADD
	RPS_GERADO int NOT NULL CONSTRAINT DF_PDV_CUPOM_NAO_FISCAL_EST_RPS_RPS_GERADO DEFAULT 0
END