From 71946aff8fd8d6bf2d2ea5c493efbbf03b4c302e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aristides=20dos=20Reis=20J=C3=BAnior?= Date: Thu, 18 Jul 2024 00:31:02 -0300 Subject: [PATCH] fixes bug#AL-4586 --- pom.xml | 2 +- src/db/migration/V20240716_1320__AL-4587.sql | 14 ++++++++++++++ 2 files changed, 15 insertions(+), 1 deletion(-) create mode 100644 src/db/migration/V20240716_1320__AL-4587.sql diff --git a/pom.xml b/pom.xml index 98f4239fc..5b18b4295 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ 4.0.0 br.com.rjconsultores Flyway - 1.70.0 + 1.71.0 diff --git a/src/db/migration/V20240716_1320__AL-4587.sql b/src/db/migration/V20240716_1320__AL-4587.sql new file mode 100644 index 000000000..c9fe1d553 --- /dev/null +++ b/src/db/migration/V20240716_1320__AL-4587.sql @@ -0,0 +1,14 @@ +-- INSERT / UPDATE +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 funcion_sistema VALUES (funcion_sistema_seq.NEXTVAL, 1, ''ADM > RELATORIOS > RELATORIOS > RELATORIOS ESTATISTICO > RELATORIO DESCONTO POR CUPOM'', + ''COM.RJCONSULTORES.ADMINISTRACION.GUI.RELATORIOS.MENU.RELATORIODESCONTOPORCUPOM'', 1, SYSDATE, 1)'; + exception + when dup_val_on_index then null; + when except_02291 then null; +end; \ No newline at end of file