GO
IF NOT EXISTS(SELECT 1 FROM syscolumns WHERE ID = OBJECT_ID('PDV_VD_FECHA_MOV_TES') AND NAME = 'CD_CNT_CX')
BEGIN  
	ALTER TABLE dbo.PDV_VD_FECHA_MOV_TES ADD
		CD_CNT_CX int NULL

	ALTER TABLE dbo.PDV_VD_FECHA_MOV_TES ADD CONSTRAINT
		DF_PDV_VD_FECHA_MOV_TES_CD_CNT_CX DEFAULT ((0)) FOR CD_CNT_CX

END
