git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/BD/FlyWay/trunk@69310 d1611594-4594-4d17-8e1d-87c2c4800839
master
lucas.taia 2017-05-25 19:03:18 +00:00
parent bcaaa4e003
commit 9442a2a43c
1 changed files with 16 additions and 0 deletions

View File

@ -0,0 +1,16 @@
declare
object_exists exception;
pragma exception_init (object_exists , -00955);
begin
execute immediate 'ALTER TABLE TARJETA_CREDITO ADD (EMPRESA_ID NUMBER(7))';
exception when object_exists then null;
end;
/
declare
object_exists exception;
pragma exception_init (object_exists , -00955);
begin
execute immediate 'ALTER TABLE TARJETA_CREDITO ADD CONSTRAINT TARJETA_CREDITO_FK_EMPRESA FOREIGN KEY (EMPRESA_ID) REFERENCES EMPRESA (EMPRESA_ID) ENABLE';
exception when object_exists then null;
end;