Correção script

bug#16767
dev:trevezani
qua:

git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/BD/FlyWay/trunk@99423 d1611594-4594-4d17-8e1d-87c2c4800839
master
alberto 2019-12-19 14:49:59 +00:00
parent 4cccea622c
commit 2b1fbeded8
1 changed files with 56 additions and 3 deletions

View File

@ -1,3 +1,56 @@
ALTER TABLE BPE MODIFY BPE_ID NUMBER(12,0); declare
ALTER TABLE BPE MODIFY BPEEVENTO_ID NUMBER(12,0); object_exists exception;
ALTER TABLE BPE MODIFY BPESUBSTITUICAO_ID NUMBER(12,0); except_01451 exception;
except_01442 exception;
pragma exception_init (object_exists , -01430);
pragma exception_init (except_01451 , -01451);
pragma exception_init (except_01442 , -01442);
pragma exception_init (except_01440 , -01440);
begin
execute immediate 'ALTER TABLE BPE MODIFY BPE_ID NUMBER(22,0)';
exception
when object_exists then null;
when except_01451 then null;
when except_01442 then null;
when except_01440 then null;
end;
/
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);
pragma exception_init (except_01440 , -01440);
begin
execute immediate 'ALTER TABLE BPE MODIFY BPEEVENTO_ID NUMBER(22,0)';
exception
when object_exists then null;
when except_01451 then null;
when except_01442 then null;
when except_01440 then null;
end;
/
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);
pragma exception_init (except_01440 , -01440);
begin
execute immediate 'ALTER TABLE BPE MODIFY BPESUBSTITUICAO_ID NUMBER(22,0)';
exception
when object_exists then null;
when except_01451 then null;
when except_01442 then null;
when except_01440 then null;
end;