From 7554f5d8c25a0b2f4292c32231e787e36312aec6 Mon Sep 17 00:00:00 2001 From: walace Date: Mon, 12 Nov 2018 18:21:59 +0000 Subject: [PATCH] =?UTF-8?q?Aplica=C3=A7=C3=A3o=20na=20Trunk=20do=20desenvo?= =?UTF-8?q?lvimento=20PDF=20da=20factura=20eletronica=20SICFE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit fixes bug#12434 dev:william qua:wallace git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/BD/FlyWay/trunk@86999 d1611594-4594-4d17-8e1d-87c2c4800839 --- src/db/migration/V20181025_1620__mantis12434.sql | 8 ++++++++ .../postgresql/migration/V20181025_1620__mantis12434.sql | 9 +++++++++ 2 files changed, 17 insertions(+) create mode 100644 src/db/migration/V20181025_1620__mantis12434.sql create mode 100644 src/db/postgresql/migration/V20181025_1620__mantis12434.sql diff --git a/src/db/migration/V20181025_1620__mantis12434.sql b/src/db/migration/V20181025_1620__mantis12434.sql new file mode 100644 index 000000000..3770f124a --- /dev/null +++ b/src/db/migration/V20181025_1620__mantis12434.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,''EMPRESA_GENERA_FACTURA_ELETRONICA_SICFE'',''EMPRESAS HABILITADAS PARA GERAR FACTURA ELETRONICA - SICFE'',0,''15'',0,1,sysdate,-1)'; + exception when dup_val_on_index then null; +end; \ No newline at end of file diff --git a/src/db/postgresql/migration/V20181025_1620__mantis12434.sql b/src/db/postgresql/migration/V20181025_1620__mantis12434.sql new file mode 100644 index 000000000..c37e6d121 --- /dev/null +++ b/src/db/postgresql/migration/V20181025_1620__mantis12434.sql @@ -0,0 +1,9 @@ +DO $$ +BEGIN +Insert into CONSTANTE (CONSTANTE_ID,NOMBCONSTANTE, DESCCONSTANTE, INDTIPOCONSTANTE, VALORCONSTANTE, INDMANTENIMIENTOUSUARIO, ACTIVO, FECMODIF, USUARIO_ID) +values (CONSTANTE_SEQ.nextval,'EMPRESA_GENERA_FACTURA_ELETRONICA_SICFE','EMPRESAS HABILITADAS PARA GERAR FACTURA ELETRONICA - SICFE',1, 232, 1, 1, sysdate, 1); + + EXCEPTION WHEN unique_violation THEN NULL; +END +$$; +