bug #8921
git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/BD/FlyWay/trunk@68260 d1611594-4594-4d17-8e1d-87c2c4800839master
parent
c7a79fe534
commit
42a464ae4c
|
@ -0,0 +1,7 @@
|
||||||
|
declare
|
||||||
|
object_exists exception;
|
||||||
|
pragma exception_init (object_exists , -00955);
|
||||||
|
begin
|
||||||
|
execute immediate 'ALTER TABLE CAJA_DIVERSOS_PAGO ADD OCD_ID NUMBER(15,0)';
|
||||||
|
exception when object_exists then null;
|
||||||
|
end;
|
|
@ -0,0 +1,9 @@
|
||||||
|
declare
|
||||||
|
object_exists exception;
|
||||||
|
pragma exception_init (object_exists , -00955);
|
||||||
|
begin
|
||||||
|
execute immediate 'ALTER TABLE CAJA_DIVERSOS_PAGO
|
||||||
|
ADD CONSTRAINT FK_CAJA_DIVERSOS_PAGO_OCD FOREIGN KEY (OCD_ID)
|
||||||
|
REFERENCES OCD (OCD_ID)';
|
||||||
|
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_PAGO ADD NOTACREDITOVENDAPACOTE_ID NUMBER(7,0)';
|
||||||
|
exception when object_exists then null;
|
||||||
|
end;
|
|
@ -0,0 +1,9 @@
|
||||||
|
declare
|
||||||
|
object_exists exception;
|
||||||
|
pragma exception_init (object_exists , -00955);
|
||||||
|
begin
|
||||||
|
execute immediate 'ALTER TABLE CAJA_DIVERSOS_PAGO
|
||||||
|
ADD CONSTRAINT FK_CAJA_DIVERSOS_PAGO_NC FOREIGN KEY (NOTACREDITOVENDAPACOTE_ID)
|
||||||
|
REFERENCES NOTA_CREDITO_VENDA_PACOTE (NOTACREDITOVENDAPACOTE_ID)';
|
||||||
|
exception when object_exists then null;
|
||||||
|
end;
|
Loading…
Reference in New Issue