fixes bug#10642

git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/BD/FlyWay/trunk@79517 d1611594-4594-4d17-8e1d-87c2c4800839
master
gleimar 2018-03-05 12:31:55 +00:00
parent 1b56fef11a
commit ab9a071c39
1 changed files with 13 additions and 0 deletions

View File

@ -0,0 +1,13 @@
begin
execute immediate 'delete from PRECIO_FIXO_PEDAGIO where PRACAPEDAGIO_ID not in (select CASETAPEAJE_ID from caseta_peaje)';
exception when others then null;
end;
/
begin
execute immediate 'alter table PRECIO_FIXO_PEDAGIO add constraint PRACAPEDGAIO_CASETA foreign key("PRACAPEDAGIO_ID") references "CASETA_PEAJE"("CASETAPEAJE_ID")';
exception when others then null;
end;
/