
/*------ ATD 356090 ------*/
DECLARE v_count NUMBER:=0;
BEGIN
  SELECT count(1) INTO v_count FROM USER_TAB_COLUMNS WHERE table_name = 'CONFERESAIDACOMLOTE' AND column_name = 'QTDORIGINAL';
  IF v_count = 0 then
	  EXECUTE IMMEDIATE 'ALTER TABLE CONFERESAIDACOMLOTE ADD QTDORIGINAL NUMBER(13,3) DEFAULT 0';
  END IF;       
END;