From 748921f1b8c5b7009433688e4b19ebf4cbc6c3f7 Mon Sep 17 00:00:00 2001 From: Leonardo Oliveira Date: Tue, 22 Oct 2024 18:54:30 -0300 Subject: [PATCH] =?UTF-8?q?Bolivariano=20-=20Criar=20campo=20para=20confir?= =?UTF-8?q?ma=C3=A7=C3=A3o=20do=20valor=20em=20caixa=20no=20fechamento=20d?= =?UTF-8?q?e=20caixa.=20feat=20bug#AL-5109?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pom.xml | 2 +- src/db/migration/V20241022_1850__AL-5109.sql | 13 +++++++++++++ 2 files changed, 14 insertions(+), 1 deletion(-) create mode 100644 src/db/migration/V20241022_1850__AL-5109.sql diff --git a/pom.xml b/pom.xml index 899db00d7..df3510373 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ 4.0.0 br.com.rjconsultores Flyway - 1.102.0 + 1.103.0 diff --git a/src/db/migration/V20241022_1850__AL-5109.sql b/src/db/migration/V20241022_1850__AL-5109.sql new file mode 100644 index 000000000..5f29dccfd --- /dev/null +++ b/src/db/migration/V20241022_1850__AL-5109.sql @@ -0,0 +1,13 @@ +declare + dup_val_on_index exception; + except_02291 exception; + + pragma exception_init (dup_val_on_index , -00001); + pragma exception_init (except_02291 , -02291); +begin + execute immediate 'INSERT INTO CONSTANTE (CONSTANTE_ID, NOMBCONSTANTE, DESCCONSTANTE, VALORCONSTANTE, INDTIPOCONSTANTE, INDMANTENIMIENTOUSUARIO, ACTIVO, FECMODIF, USUARIO_ID) + VALUES (CONSTANTE_SEQ.nextval,''CONFIRMAR_IMPORTE_CAJA'',''CONFIRMAR_IMPORTE_CAJA'', ''false'', '''', '''', ''1'', sysdate, ''1'')'; + exception + when dup_val_on_index then null; + when except_02291 then null; +end; \ No newline at end of file