git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/BD/FlyWay/trunk@68270 d1611594-4594-4d17-8e1d-87c2c4800839
master
wilian 2017-04-26 13:09:30 +00:00
parent 42a464ae4c
commit d5782ac4c8
4 changed files with 32 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 PACOTE_FORMAPAGO ADD NOTACREDITOVENDAPACOTE_ID NUMBER(7,0)';
exception when object_exists then null;
end;

View File

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

View File

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

View File

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