From 51159680d748d69641f59d784b1ad0b09eea4fc0 Mon Sep 17 00:00:00 2001 From: walace Date: Wed, 30 Oct 2019 21:54:40 +0000 Subject: [PATCH] fixes bug#16543 qua: dev:julio MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Foi criado uma constante no banco RELATORIO BPE OTIMIZADO para o relatório BPE para ativar, basta ir em ADM > Configuraçai Comercial > Configuração Geral git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/BD/FlyWay/trunk@98526 d1611594-4594-4d17-8e1d-87c2c4800839 --- src/db/migration/V20191030_1714__mantis16543.sql | 5 +++++ src/db/postgresql/migration/V20191030_1741__mantis16543.sql | 5 +++++ 2 files changed, 10 insertions(+) create mode 100644 src/db/migration/V20191030_1714__mantis16543.sql create mode 100644 src/db/postgresql/migration/V20191030_1741__mantis16543.sql diff --git a/src/db/migration/V20191030_1714__mantis16543.sql b/src/db/migration/V20191030_1714__mantis16543.sql new file mode 100644 index 000000000..73973c83f --- /dev/null +++ b/src/db/migration/V20191030_1714__mantis16543.sql @@ -0,0 +1,5 @@ +declare +begin + execute immediate 'Insert into CONSTANTE (CONSTANTE_ID,NOMBCONSTANTE,DESCCONSTANTE,INDTIPOCONSTANTE,VALORCONSTANTE,INDMANTENIMIENTOUSUARIO,ACTIVO,FECMODIF,USUARIO_ID) values (CONSTANTE_SEQ.NEXTVAL,''RELATORIO_BPE_OTIMIZADO'',''RELATORIO BPE OTIMIZADO'',''1'',''false'',''1'',''1'',sysdate,''1'')'; + exception when others then null; +end; \ No newline at end of file diff --git a/src/db/postgresql/migration/V20191030_1741__mantis16543.sql b/src/db/postgresql/migration/V20191030_1741__mantis16543.sql new file mode 100644 index 000000000..ca24b6457 --- /dev/null +++ b/src/db/postgresql/migration/V20191030_1741__mantis16543.sql @@ -0,0 +1,5 @@ +DO $$ +BEGIN +Insert into CONSTANTE (CONSTANTE_ID,NOMBCONSTANTE,DESCCONSTANTE,INDTIPOCONSTANTE,VALORCONSTANTE,INDMANTENIMIENTOUSUARIO,ACTIVO,FECMODIF,USUARIO_ID) values (CONSTANTE_SEQ.NEXTVAL,''RELATORIO_BPE_OTIMIZADO'',''RELATORIO BPE OTIMIZADO'',''1'',''2'',''1'',''1'',sysdate,''1''); +END +$$; \ No newline at end of file