
IF NOT EXISTS(SELECT * FROM INFORMATION_SCHEMA.COLUMNS WHERE TABLE_NAME = 'EST_PED_VD' AND COLUMN_NAME = 'FLAG_VLR_ICMS_DESONERADO_DESCONTO')
BEGIN 
	ALTER TABLE EST_PED_VD ADD FLAG_VLR_ICMS_DESONERADO_DESCONTO TINYINT
END