From 815235d3e0fa8f9ee25d962faeda42e9dec5f3b7 Mon Sep 17 00:00:00 2001 From: walace Date: Fri, 18 Dec 2020 20:50:59 +0000 Subject: [PATCH] fixes bug#20807 qua:wally dev:lucas MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Implementado com parametrização, a exibiçao do relatorio com pulos de sequencias git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/BD/FlyWay/trunk@104793 d1611594-4594-4d17-8e1d-87c2c4800839 --- src/db/migration/V20201215_1716__mantis20807.sql | 6 ++++++ .../postgresql/migration/V20201218_1704__mantis20807.sql | 7 +++++++ 2 files changed, 13 insertions(+) create mode 100644 src/db/migration/V20201215_1716__mantis20807.sql create mode 100644 src/db/postgresql/migration/V20201218_1704__mantis20807.sql diff --git a/src/db/migration/V20201215_1716__mantis20807.sql b/src/db/migration/V20201215_1716__mantis20807.sql new file mode 100644 index 000000000..6e3aee57c --- /dev/null +++ b/src/db/migration/V20201215_1716__mantis20807.sql @@ -0,0 +1,6 @@ +declare + begin + execute immediate 'INSERT INTO CUSTOM (CUSTOM_ID, SISTEMA, CHAVE, VALOR, ACTIVO, FECMODIF, USUARIO_ID) + VALUES (CUSTOM_SEQ.nextval, 2, ''MODCLI_ExibirEstoquePorPuloSequencia'', ''0'', 0, sysdate, 1)'; + exception when others then null; +end; \ No newline at end of file diff --git a/src/db/postgresql/migration/V20201218_1704__mantis20807.sql b/src/db/postgresql/migration/V20201218_1704__mantis20807.sql new file mode 100644 index 000000000..8cfd0e4c5 --- /dev/null +++ b/src/db/postgresql/migration/V20201218_1704__mantis20807.sql @@ -0,0 +1,7 @@ +DO $$ +BEGIN + INSERT INTO CUSTOM (CUSTOM_ID, SISTEMA, CHAVE, VALOR, ACTIVO, FECMODIF, USUARIO_ID) + VALUES (nextval('CUSTOM_SEQ').nextval, 2, 'MODCLI_ExibirEstoquePorPuloSequencia', 'false', 1, now(), 1) + EXCEPTION WHEN unique_violation THEN NULL; +END +$$;