fixes bug#21091

fixes bug#21087
dev:valdir
qua:

git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/BD/FlyWay/trunk@104536 d1611594-4594-4d17-8e1d-87c2c4800839
master
wilian 2020-11-26 21:23:12 +00:00
parent 310a080a4e
commit 6df14d40e6
2 changed files with 17 additions and 0 deletions

View File

@ -0,0 +1,11 @@
declare
object_exists exception;
except_00957 exception;
pragma exception_init (object_exists , -01430);
pragma exception_init (except_00957 , -00957);
begin
execute immediate 'ALTER TABLE ESTACION_SITEF MODIFY NUMEMPRESA VARCHAR2(30)';
exception
when object_exists then null;
when except_00957 then null;
end;

View File

@ -0,0 +1,6 @@
DO $$
BEGIN
ALTER TABLE ESTACION_SITEF MODIFY NUMEMPRESA VARCHAR2(30 BYTE);
EXCEPTION WHEN duplicate_column THEN NULL;
END
$$;