git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/BD/FlyWay/trunk@64956 d1611594-4594-4d17-8e1d-87c2c4800839
master
wilian 2017-01-13 20:24:46 +00:00
parent 3c957686f9
commit 5619e357cc
2 changed files with 14 additions and 0 deletions

View File

@ -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;

View File

@ -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;