fixes bug #8466
git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/BD/FlyWay/trunk@64956 d1611594-4594-4d17-8e1d-87c2c4800839master
parent
3c957686f9
commit
5619e357cc
|
@ -0,0 +1,7 @@
|
|||
declare
|
||||
object_exists exception;
|
||||
pragma exception_init (object_exists , -00955);
|
||||
begin
|
||||
execute immediate 'ALTER TABLE CAJA_DIVERSOS ADD (NOTACREDITOVENDAPACOTE_ID NUMBER(7,0))';
|
||||
exception when object_exists then null;
|
||||
end;
|
|
@ -0,0 +1,7 @@
|
|||
declare
|
||||
object_exists exception;
|
||||
pragma exception_init (object_exists , -00955);
|
||||
begin
|
||||
execute immediate 'ALTER TABLE CAJA_DIVERSOS ADD CONSTRAINT FK_NC_PACOTE FOREIGN KEY (NOTACREDITOVENDAPACOTE_ID) REFERENCES NOTA_CREDITO_VENDA_PACOTE (NOTACREDITOVENDAPACOTE_ID)';
|
||||
exception when object_exists then null;
|
||||
end;
|
Loading…
Reference in New Issue