fixed bug#17121
qua: dev: git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/BD/FlyWay/trunk@99596 d1611594-4594-4d17-8e1d-87c2c4800839master
parent
60e4761137
commit
61d47c5a32
|
@ -85,45 +85,4 @@ ADD CONSTRAINT FK_BOLETO_COTACAO
|
||||||
when except_02275 then null;
|
when except_02275 then null;
|
||||||
when except_02270 then null;
|
when except_02270 then null;
|
||||||
when except_02261 then null;
|
when except_02261 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);
|
|
||||||
begin
|
|
||||||
execute immediate 'ALTER TABLE CAJA ADD COTACAO_ID NUMBER(7,0)';
|
|
||||||
exception
|
|
||||||
when object_exists then null;
|
|
||||||
when except_01451 then null;
|
|
||||||
when except_01442 then null;
|
|
||||||
end;
|
|
||||||
|
|
||||||
/
|
|
||||||
|
|
||||||
declare
|
|
||||||
object_exists exception;
|
|
||||||
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
|
|
||||||
execute immediate 'ALTER TABLE CAJA
|
|
||||||
ADD CONSTRAINT FK_BOLETO_COTACAO
|
|
||||||
FOREIGN KEY (COTACAO_ID)
|
|
||||||
REFERENCES COTACAO (COTACAO_ID)';
|
|
||||||
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