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