if not exists(select 1 from syscolumns where id = object_id('EST_PED_VD') and name = 'FLAG_NAO_CALCULAR_IMPOSTO')
begin 
ALTER TABLE dbo.EST_PED_VD ADD
	FLAG_NAO_CALCULAR_IMPOSTO int NULL,
	VLR_BASE_ICMS money NULL,
	VLR_ICMS money NULL,
	VLR_BASE_ICMS_ST money NULL,
	VLR_IPI money NULL,
	ESP_VOL varchar(50) NULL,
	MC_VOL varchar(50) NULL,
	NR_VOL float(53) NULL,
	PESO_VOL float(53) NULL,
	PESO_LIQ_VOL float(53) NULL
ALTER TABLE dbo.EST_PED_VD ADD CONSTRAINT
	DF_EST_PED_VD_FLAG_NAO_CALCULAR_IMPOSTO DEFAULT 0 FOR FLAG_NAO_CALCULAR_IMPOSTO
ALTER TABLE dbo.EST_PED_VD ADD CONSTRAINT
	DF_EST_PED_VD_VLR_BASE_ICMS DEFAULT 0 FOR VLR_BASE_ICMS
ALTER TABLE dbo.EST_PED_VD ADD CONSTRAINT
	DF_EST_PED_VD_VLR_ICMS DEFAULT 0 FOR VLR_ICMS
ALTER TABLE dbo.EST_PED_VD ADD CONSTRAINT
	DF_EST_PED_VD_VLR_BASE_ICMS_ST DEFAULT 0 FOR VLR_BASE_ICMS_ST
ALTER TABLE dbo.EST_PED_VD ADD CONSTRAINT
	DF_EST_PED_VD_VLR_IPI DEFAULT 0 FOR VLR_IPI
ALTER TABLE dbo.EST_PED_VD ADD CONSTRAINT
	DF_EST_PED_VD_ESP_VOL DEFAULT '' FOR ESP_VOL
ALTER TABLE dbo.EST_PED_VD ADD CONSTRAINT
	DF_EST_PED_VD_MC_VOL DEFAULT '' FOR MC_VOL
ALTER TABLE dbo.EST_PED_VD ADD CONSTRAINT
	DF_EST_PED_VD_NR_VOL DEFAULT 0 FOR NR_VOL
ALTER TABLE dbo.EST_PED_VD ADD CONSTRAINT
	DF_EST_PED_VD_PESO_VOL DEFAULT 0 FOR PESO_VOL
ALTER TABLE dbo.EST_PED_VD ADD CONSTRAINT
	DF_EST_PED_VD_PESO_LIQ_VOL DEFAULT 0 FOR PESO_LIQ_VOL
end