From c7dd80bfea6894f4bed56f9cb9a87add9f1af24c Mon Sep 17 00:00:00 2001 From: wilian Date: Wed, 12 May 2021 20:00:39 +0000 Subject: [PATCH] fixes bug#22054 dev:wallace qua: git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/BD/FlyWay/trunk@106657 d1611594-4594-4d17-8e1d-87c2c4800839 --- src/db/migration/V20210505_1028__mantis22054.sql | 6 ++++++ .../migration/V20210505_1028__mantis22054.sql | 10 ++++++++++ 2 files changed, 16 insertions(+) create mode 100644 src/db/migration/V20210505_1028__mantis22054.sql create mode 100644 src/db/postgresql/migration/V20210505_1028__mantis22054.sql diff --git a/src/db/migration/V20210505_1028__mantis22054.sql b/src/db/migration/V20210505_1028__mantis22054.sql new file mode 100644 index 000000000..8354d0080 --- /dev/null +++ b/src/db/migration/V20210505_1028__mantis22054.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, ''CONEXAO_RUTA_FIXA'', ''HABILITA CONEXAO FIXA POR LINHA'', ''FALSE'', ''1'', ''1'', ''1'', sysdate, ''1'')'; + exception when others then null; +end; \ No newline at end of file diff --git a/src/db/postgresql/migration/V20210505_1028__mantis22054.sql b/src/db/postgresql/migration/V20210505_1028__mantis22054.sql new file mode 100644 index 000000000..34c1c2da2 --- /dev/null +++ b/src/db/postgresql/migration/V20210505_1028__mantis22054.sql @@ -0,0 +1,10 @@ +DO $$ +BEGIN + INSERT INTO CONSTANTE (CONSTANTE_ID, NOMBCONSTANTE, DESCCONSTANTE, VALORCONSTANTE, INDTIPOCONSTANTE, INDMANTENIMIENTOUSUARIO, ACTIVO, FECMODIF, USUARIO_ID) + VALUES (CONSTANTE_SEQ.nextval, 'CONEXAO_RUTA_FIXA', 'HABILITA CONEXAO FIXA POR LINHA', 'FALSE', '1', '1', '1', now(), '1'); + + EXCEPTION + WHEN OTHERS THEN NULL; + WHEN unique_violation THEN NULL; +END +$$; \ No newline at end of file