bug#15465

dev:thiago
qua:

git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/BD/FlyWay/trunk@97264 d1611594-4594-4d17-8e1d-87c2c4800839
master
wilian 2019-09-04 18:26:00 +00:00
parent 2e7a4a437b
commit 58b6be7765
2 changed files with 13 additions and 0 deletions

View File

@ -0,0 +1,7 @@
declare
column_exists exception;
pragma exception_init (column_exists , -01430);
begin
execute immediate 'ALTER TABLE BOLETO ADD (INDPCD NUMBER(1), INFOPCD VARCHAR(50))';
exception when column_exists then null;
end;

View File

@ -0,0 +1,6 @@
DO $$
BEGIN
ALTER TABLE BOLETO ADD (INDPCD BOOLEAN, INFOPCD VARCHAR(50));
EXCEPTION WHEN duplicate_column THEN NULL;
END
$$;