From fee54c60c6a0012997f4545440256dcfd6453410 Mon Sep 17 00:00:00 2001 From: valdevir Date: Wed, 28 Oct 2020 19:20:48 +0000 Subject: [PATCH] fixes bug#20410 qua: dev:Valdir git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/BD/FlyWay/trunk@104030 d1611594-4594-4d17-8e1d-87c2c4800839 --- src/db/migration/V20201028_1525__mantis20288.sql | 2 +- src/db/postgresql/migration/V20201028_1525__mantis20288.sql | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/db/migration/V20201028_1525__mantis20288.sql b/src/db/migration/V20201028_1525__mantis20288.sql index 9c9895d42..efab29f41 100644 --- a/src/db/migration/V20201028_1525__mantis20288.sql +++ b/src/db/migration/V20201028_1525__mantis20288.sql @@ -1,6 +1,6 @@ declare begin execute immediate 'INSERT INTO CUSTOM (CUSTOM_ID, SISTEMA, CHAVE, VALOR, ACTIVO, FECMODIF, USUARIO_ID) - VALUES (CUSTOM_SEQ.nextval, 3, ''isBloqueiaReimpressaoPontoVendaW2i'', ''false'', 1, sysdate, 1)'; + VALUES (CUSTOM_SEQ.nextval, 2, ''isBloqueiaReimpressaoPontoVendaW2i'', ''false'', 1, sysdate, 1)'; exception when others then null; end; \ No newline at end of file diff --git a/src/db/postgresql/migration/V20201028_1525__mantis20288.sql b/src/db/postgresql/migration/V20201028_1525__mantis20288.sql index 3720a81af..7be0e03c4 100644 --- a/src/db/postgresql/migration/V20201028_1525__mantis20288.sql +++ b/src/db/postgresql/migration/V20201028_1525__mantis20288.sql @@ -1,7 +1,7 @@ DO $$ BEGIN INSERT INTO CUSTOM (CUSTOM_ID, SISTEMA, CHAVE, VALOR, ACTIVO, FECMODIF, USUARIO_ID) - VALUES (CUSTOM_SEQ.nextval, 3, 'isBloqueiaReimpressaoPontoVendaW2i', 'false', 1, sysdate, 1) + VALUES (nextval('CUSTOM_SEQ').nextval, 2, 'isBloqueiaReimpressaoPontoVendaW2i', 'false', 1, now(), 1) EXCEPTION WHEN unique_violation THEN NULL; END $$;