AdmMono/src/db/migration/V20180315_1130__mantis10721...

18 lines
454 B
SQL

declare
column_exists exception;
pragma exception_init (column_exists , -01430);
begin
execute immediate 'ALTER TABLE BPE ADD (OUTROSTRIBUTOS VARCHAR2(100))';
exception when column_exists then null;
end;
/
declare
column_exists exception;
pragma exception_init (column_exists , -01430);
begin
execute immediate 'ALTER TABLE BPE ADD (DESCONTO VARCHAR2(30))';
exception when column_exists then null;
end;