From ab9a071c39576c6f2cb0877629907c00bcd7164b Mon Sep 17 00:00:00 2001 From: gleimar Date: Mon, 5 Mar 2018 12:31:55 +0000 Subject: [PATCH] fixes bug#10642 git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/BD/FlyWay/trunk@79517 d1611594-4594-4d17-8e1d-87c2c4800839 --- src/db/migration/V20180305_0925__mantis10642.sql | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 src/db/migration/V20180305_0925__mantis10642.sql diff --git a/src/db/migration/V20180305_0925__mantis10642.sql b/src/db/migration/V20180305_0925__mantis10642.sql new file mode 100644 index 000000000..7e3ab6e8f --- /dev/null +++ b/src/db/migration/V20180305_0925__mantis10642.sql @@ -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; +/ \ No newline at end of file