From 811ee666bdc2a93bddcba1c32c78ee5c0077696f Mon Sep 17 00:00:00 2001 From: "fabricio.oliveira" Date: Mon, 12 Nov 2018 20:03:44 +0000 Subject: [PATCH] =?UTF-8?q?0012335:=20Par=C3=A2metro=20Venda=20Motorista?= =?UTF-8?q?=20(venda=20para=20ag=C3=AAncia)=20fixes=20bug#12335=20dev:Emer?= =?UTF-8?q?son=20qua:Marcelo?= 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@87006 d1611594-4594-4d17-8e1d-87c2c4800839 --- src/db/migration/V20181105_1600__mantis12335.sql | 6 ++++++ .../postgresql/migration/V20181105_1600__mantis12335.sql | 7 +++++++ 2 files changed, 13 insertions(+) create mode 100644 src/db/migration/V20181105_1600__mantis12335.sql create mode 100644 src/db/postgresql/migration/V20181105_1600__mantis12335.sql diff --git a/src/db/migration/V20181105_1600__mantis12335.sql b/src/db/migration/V20181105_1600__mantis12335.sql new file mode 100644 index 000000000..82f1790fd --- /dev/null +++ b/src/db/migration/V20181105_1600__mantis12335.sql @@ -0,0 +1,6 @@ +declare + begin + execute immediate 'INSERT INTO CONSTANTE (CONSTANTE_ID, NOMBCONSTANTE, DESCCONSTANTE, VALORCONSTANTE, INDTIPOCONSTANTE, INDMANTENIMIENTOUSUARIO, ACTIVO, FECMODIF, USUARIO_ID) + VALUES (CONSTANTE_SEQ.nextval, ''PARAMETRO_VENDA_MOTORISTA'', ''PARAMETRO_VENDA_MOTORISTA'', ''0'', ''1'', ''1'', ''1'', sysdate, ''1'')'; + exception when others then null; +end; diff --git a/src/db/postgresql/migration/V20181105_1600__mantis12335.sql b/src/db/postgresql/migration/V20181105_1600__mantis12335.sql new file mode 100644 index 000000000..2dd3d0321 --- /dev/null +++ b/src/db/postgresql/migration/V20181105_1600__mantis12335.sql @@ -0,0 +1,7 @@ +DO $$ +BEGIN + INSERT INTO CONSTANTE (CONSTANTE_ID, NOMBCONSTANTE, DESCCONSTANTE, VALORCONSTANTE, INDTIPOCONSTANTE, INDMANTENIMIENTOUSUARIO, ACTIVO, FECMODIF, USUARIO_ID) + VALUES (nextval('CONSTANTE_SEQ'), 'PARAMETRO_VENDA_MOTORISTA', 'PARAMETRO_VENDA_MOTORISTA', '0', 1, 1, 1, now(), 1); + EXCEPTION WHEN unique_violation THEN NULL; +END +$$;