
/*------ ATD 354218 ------*/
-- ORACLE
DECLARE v_count NUMBER(1) := 0;
BEGIN
SELECT 1 INTO v_count FROM USER_TAB_COLUMNS WHERE table_name = 'ITNFSAICOMPLEMENTO' AND column_name = 'PISPRECO';
EXCEPTION
WHEN NO_DATA_FOUND THEN
EXECUTE IMMEDIATE 'ALTER TABLE ITNFSAICOMPLEMENTO ADD PISPRECO  INT DEFAULT 0 Not NULL';
END;


DECLARE v_count NUMBER(1) := 0;
BEGIN
SELECT 1 INTO v_count FROM USER_TAB_COLUMNS WHERE table_name = 'ITNFSAICOMPLEMENTO' AND column_name = 'COFINSPRECO';
EXCEPTION
WHEN NO_DATA_FOUND THEN
EXECUTE IMMEDIATE 'ALTER TABLE ITNFSAICOMPLEMENTO ADD COFINSPRECO  INT DEFAULT 0 Not NULL';
END;


DECLARE v_count NUMBER(1) := 0;
BEGIN
SELECT 1 INTO v_count FROM USER_TAB_COLUMNS WHERE table_name = 'ITNFENTCOMPLEMENTO' AND column_name = 'PISPRECO';
EXCEPTION
WHEN NO_DATA_FOUND THEN
EXECUTE IMMEDIATE 'ALTER TABLE ITNFENTCOMPLEMENTO ADD PISPRECO  INT DEFAULT 0 Not NULL';
END;


DECLARE v_count NUMBER(1) := 0;
BEGIN
SELECT 1 INTO v_count FROM USER_TAB_COLUMNS WHERE table_name = 'ITNFENTCOMPLEMENTO' AND column_name = 'COFINSPRECO';
EXCEPTION
WHEN NO_DATA_FOUND THEN
EXECUTE IMMEDIATE 'ALTER TABLE ITNFENTCOMPLEMENTO ADD COFINSPRECO  INT DEFAULT 0 Not NULL';
END;



