IF NOT EXISTS (SELECT * FROM SYS.COLUMNS WHERE NAME = 'VLR_BASE_FECOP_RET' AND OBJECT_ID = OBJECT_ID('EST_PED_VD_IT'))
BEGIN
ALTER TABLE DBO.EST_PED_VD_IT ADD	VLR_BASE_FECOP_RET MONEY NULL

ALTER TABLE DBO.EST_PED_VD_IT ADD CONSTRAINT DF_EST_PED_VD_IT_VLR_BASE_FECOP_RET DEFAULT 0 FOR VLR_BASE_FECOP_RET

ALTER TABLE DBO.EST_PED_VD_IT ADD	VLR_FECOP_RET MONEY NULL

ALTER TABLE DBO.EST_PED_VD_IT ADD CONSTRAINT DF_EST_PED_VD_IT_VLR_FECOP_RET DEFAULT 0 FOR VLR_FECOP_RET

ALTER TABLE DBO.EST_PED_VD_IT ADD	PERC_FECOP_RET MONEY NULL

ALTER TABLE DBO.EST_PED_VD_IT ADD CONSTRAINT DF_EST_PED_VD_IT_PERC_FECOP_RET DEFAULT 0 FOR PERC_FECOP_RET
END
