git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/BD/FlyWay/trunk@68110 d1611594-4594-4d17-8e1d-87c2c4800839
master
wilian 2017-04-17 21:56:44 +00:00
parent 798cc2c7a2
commit c5fb1f9e79
2 changed files with 16 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 LOG_CONFERENCIA ADD CAJA_ID NUMBER(15,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 LOG_CONFERENCIA
ADD CONSTRAINT FK_LOGCONFERENCIA_CAJA FOREIGN KEY (CAJA_ID)
REFERENCES CAJA (CAJA_ID)';
exception when object_exists then null;
end;