fixes bug #8882
git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/BD/FlyWay/trunk@68110 d1611594-4594-4d17-8e1d-87c2c4800839master
parent
798cc2c7a2
commit
c5fb1f9e79
|
@ -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;
|
|
@ -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;
|
Loading…
Reference in New Issue