if not exists(select 1 from syscolumns where id = object_id('EST_PED_VD_IT') and name = 'VLR_BASE_ICMS_OP')
begin
ALTER TABLE dbo.EST_PED_VD_IT ADD
	VLR_BASE_ICMS_OP money NULL,
	VLR_ICMS_OP money NULL,
	PERC_ICMS_OP money NULL,
	PERC_DIFERIMENTO money NULL,
	VLR_ICMS_DIFERIMENTO money NULL

ALTER TABLE dbo.EST_PED_VD_IT ADD CONSTRAINT
	DF_EST_PED_VD_IT_VLR_BASE_ICMS_OP DEFAULT 0 FOR VLR_BASE_ICMS_OP

ALTER TABLE dbo.EST_PED_VD_IT ADD CONSTRAINT
	DF_EST_PED_VD_IT_VLR_ICMS_OP DEFAULT 0 FOR VLR_ICMS_OP

ALTER TABLE dbo.EST_PED_VD_IT ADD CONSTRAINT
	DF_EST_PED_VD_IT_PERC_ICMS_OP DEFAULT 0 FOR PERC_ICMS_OP

ALTER TABLE dbo.EST_PED_VD_IT ADD CONSTRAINT
	DF_EST_PED_VD_IT_PERC_DIFERIMENTO DEFAULT 0 FOR PERC_DIFERIMENTO

ALTER TABLE dbo.EST_PED_VD_IT ADD CONSTRAINT
	DF_EST_PED_VD_IT_VLR_ICMS_DIFERIMENTO DEFAULT 0 FOR VLR_ICMS_DIFERIMENTO
end