bug#15084
dev: Lucas Silvério qua: git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/BD/FlyWay/trunk@96186 d1611594-4594-4d17-8e1d-87c2c4800839master
parent
762fac488a
commit
8a0382ad89
|
@ -1,7 +1,18 @@
|
||||||
declare
|
declare
|
||||||
object_exists exception;
|
object_exists exception;
|
||||||
pragma exception_init (object_exists , -00955);
|
except_02275 exception;
|
||||||
|
except_02270 exception;
|
||||||
|
except_02261 exception;
|
||||||
|
|
||||||
|
pragma exception_init (object_exists , -01430);
|
||||||
|
pragma exception_init (except_02275 , -02275);
|
||||||
|
pragma exception_init (except_02270 , -02270);
|
||||||
|
pragma exception_init (except_02261 , -02261);
|
||||||
begin
|
begin
|
||||||
execute immediate 'ALTER TABLE INTEGRACAO_TOTVS_SERVICO ADD CONSTRAINT INTEGRACAO_TOTVS_SERVICO_FK1 FOREIGN KEY(ESQUEMACORRIDA_ID )REFERENCES ESQUEMA_CORRIDA(ESQUEMACORRIDA_ID )';
|
execute immediate 'ALTER TABLE INTEGRACAO_TOTVS_SERVICO ADD CONSTRAINT INTEGRACAO_TOTVS_SERVICO_FK1 FOREIGN KEY(ESQUEMACORRIDA_ID )REFERENCES ESQUEMA_CORRIDA(ESQUEMACORRIDA_ID )';
|
||||||
exception when object_exists then null;
|
exception
|
||||||
|
when object_exists then null;
|
||||||
|
when except_02275 then null;
|
||||||
|
when except_02270 then null;
|
||||||
|
when except_02261 then null;
|
||||||
end;
|
end;
|
Loading…
Reference in New Issue