fixes bug#21665

qua:
dev:Aristides


git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/BD/FlyWay/trunk@105917 d1611594-4594-4d17-8e1d-87c2c4800839
master
valdevir 2021-03-24 21:30:26 +00:00
parent 267f95b3cf
commit 9b328105eb
2 changed files with 22 additions and 0 deletions

View File

@ -0,0 +1,15 @@
declare
object_exists exception;
except_01451 exception;
except_01442 exception;
pragma exception_init (object_exists , -01430);
pragma exception_init (except_01451 , -01451);
pragma exception_init (except_01442 , -01442);
begin
execute immediate 'ALTER TABLE TAXPOLV MODIFY POLTRONA VARCHAR2(6 BYTE)';
exception
when object_exists then null;
when except_01451 then null;
when except_01442 then null;
end;

View File

@ -0,0 +1,7 @@
DO $$
BEGIN
ALTER TABLE TAXPOLV ALTER COLUMN POLTRONA TYPE VARCHAR(6);
EXCEPTION WHEN duplicate_column THEN NULL;
END
$$;