IF NOT EXISTS(SELECT 1 FROM INFORMATION_SCHEMA.COLUMNS WHERE TABLE_NAME = 'PDV_VD' AND COLUMN_NAME = 'FLAG_VLR_ICMS_DESONERADO_DESCONTO')
BEGIN 
    ALTER TABLE PDV_VD ADD FLAG_VLR_ICMS_DESONERADO_DESCONTO INT NOT NULL DEFAULT 0
END