From e49c42d64f6a2e1a54d381206e826fd9959337d4 Mon Sep 17 00:00:00 2001 From: valdevir Date: Tue, 12 Sep 2017 21:43:30 +0000 Subject: [PATCH] fixes bug #9687 git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/BD/FlyWay/trunk@73731 d1611594-4594-4d17-8e1d-87c2c4800839 --- src/db/migration/V20170912_1805__mantis9687.sql | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 src/db/migration/V20170912_1805__mantis9687.sql diff --git a/src/db/migration/V20170912_1805__mantis9687.sql b/src/db/migration/V20170912_1805__mantis9687.sql new file mode 100644 index 000000000..02a951f8b --- /dev/null +++ b/src/db/migration/V20170912_1805__mantis9687.sql @@ -0,0 +1,8 @@ +declare + dup_val_on_index exception; + pragma exception_init (dup_val_on_index , -00001); +begin + execute immediate 'Insert into CONSTANTE (CONSTANTE_ID,NOMBCONSTANTE,DESCCONSTANTE,INDTIPOCONSTANTE,VALORCONSTANTE,INDMANTENIMIENTOUSUARIO,ACTIVO,FECMODIF,USUARIO_ID) values (CONSTANTE_SEQ.NEXTVAL,''IS_ARREDONDAMENTO_TARIFA'',''IS_ARREDONDAMENTO_TARIFA'',''1'',''false'',''1'',''1'',sysdate,''1'')'; + exception when dup_val_on_index then null; +end; +