Gerar lançamento comissão no conta corrente da agência (issue 8900)

git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/BD/FlyWay/trunk@69212 d1611594-4594-4d17-8e1d-87c2c4800839
master
alberto 2017-05-23 19:19:24 +00:00
parent db7c8a0277
commit cb8008940a
1 changed files with 25 additions and 0 deletions

View File

@ -0,0 +1,25 @@
declare
object_exists exception;
pragma exception_init (object_exists , -02275);
begin
execute immediate 'ALTER TABLE PTOVTA_EMPRESA_CONTABANCARIA ADD FOREIGN KEY (EMPRESACONTABANCARIA_ID) REFERENCES EMPRESA_CONTABANCARIA (EMPRESACONTABANCARIA_ID)';
exception when object_exists then null;
end;
/
declare
object_exists exception;
pragma exception_init (object_exists , -02260);
begin
execute immediate 'ALTER TABLE PTOVTA_EMPRESA ADD CONSTRAINT PTOVTA_EMPRESA_PK PRIMARY KEY (PTOVTAEMPRESA_ID)';
exception when object_exists then null;
end;
/
declare
object_exists exception;
pragma exception_init (object_exists , -02275);
begin
execute immediate 'ALTER TABLE PTOVTA_EMPRESA_CONTABANCARIA ADD FOREIGN KEY (PTOVTAEMPRESA_ID) REFERENCES PTOVTA_EMPRESA (PTOVTAEMPRESA_ID)';
exception when object_exists then null;
end;