From fda74848ff4c77fc7bc1f6d7aa455073abd2a144 Mon Sep 17 00:00:00 2001 From: "daniel.zauli" Date: Wed, 11 Dec 2019 20:44:43 +0000 Subject: [PATCH] =?UTF-8?q?17173:=20GLPI=2019006=20-=20Desabilitar=20Tipo?= =?UTF-8?q?=201=20-=20Conta=20Corrente=20Ag=C3=AAncia=20fixes=20bug#17173?= =?UTF-8?q?=20dev:Fabio=20qua:Debora?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/BD/FlyWay/trunk@99326 d1611594-4594-4d17-8e1d-87c2c4800839 --- src/db/migration/V20191211_1515__mantis17173.sql | 6 ++++++ .../migration/V20191211_1515__mantis17173.sql | 10 ++++++++++ 2 files changed, 16 insertions(+) create mode 100644 src/db/migration/V20191211_1515__mantis17173.sql create mode 100644 src/db/postgresql/migration/V20191211_1515__mantis17173.sql diff --git a/src/db/migration/V20191211_1515__mantis17173.sql b/src/db/migration/V20191211_1515__mantis17173.sql new file mode 100644 index 000000000..2459e077b --- /dev/null +++ b/src/db/migration/V20191211_1515__mantis17173.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, 1, ''selecionarTipo2ContaCorrente'', ''false'', 1, sysdate, 1)'; + exception when others then null; +end; \ No newline at end of file diff --git a/src/db/postgresql/migration/V20191211_1515__mantis17173.sql b/src/db/postgresql/migration/V20191211_1515__mantis17173.sql new file mode 100644 index 000000000..93d9e93f7 --- /dev/null +++ b/src/db/postgresql/migration/V20191211_1515__mantis17173.sql @@ -0,0 +1,10 @@ +DO $$ +BEGIN + INSERT INTO CUSTOM (CUSTOM_ID, SISTEMA, CHAVE, VALOR, ACTIVO, FECMODIF, USUARIO_ID) + VALUES (nextval('custom_seq'), 1, 'selecionarTipo2ContaCorrente', 'false', 1, now(), 1); + + EXCEPTION + WHEN OTHERS THEN NULL; + WHEN unique_violation THEN NULL; +END +$$; \ No newline at end of file