bug#13358

dev:Thiago
qua:

git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/BD/FlyWay/trunk@89099 d1611594-4594-4d17-8e1d-87c2c4800839
master
thiago 2019-01-19 17:05:35 +00:00
parent 72a886e4af
commit 9ebf16ece2
2 changed files with 40 additions and 0 deletions

View File

@ -0,0 +1,27 @@
declare
column_exists exception;
pragma exception_init (column_exists , -01430);
begin
execute immediate 'ALTER TABLE FISCAL_J1 MODIFY ( NUMSERIENOTAFISCAL VARCHAR2(8) )';
exception when column_exists then null;
end;
/
declare
column_exists exception;
pragma exception_init (column_exists , -01430);
begin
execute immediate 'ALTER TABLE FISCAL_J2 MODIFY ( NUMSERIENOTAFISCAL VARCHAR2(8) )';
exception when column_exists then null;
end;

View File

@ -0,0 +1,13 @@
DO $$
BEGIN
ALTER TABLE FISCAL_J1 MODIFY ( NUMSERIENOTAFISCAL VARCHAR2(8) );
EXCEPTION WHEN duplicate_column THEN NULL;
END
$$;
/
DO $$
BEGIN
ALTER TABLE FISCAL_J2 MODIFY ( NUMSERIENOTAFISCAL VARCHAR2(8) );
EXCEPTION WHEN duplicate_column THEN NULL;
END
$$;