From 63ffaf9ed0a0a34d08dac3a39516be7c48825e3b Mon Sep 17 00:00:00 2001 From: valdevir Date: Tue, 4 Jun 2024 18:08:10 -0300 Subject: [PATCH] fixes bug #AL-4474 --- pom.xml | 2 +- src/db/migration/V20240604_1720__jira4474.sql | 15 +++++++++++++++ 2 files changed, 16 insertions(+), 1 deletion(-) create mode 100644 src/db/migration/V20240604_1720__jira4474.sql diff --git a/pom.xml b/pom.xml index 36f71f428..9ae129334 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ 4.0.0 br.com.rjconsultores Flyway - 1.45.1 + 1.45.2 diff --git a/src/db/migration/V20240604_1720__jira4474.sql b/src/db/migration/V20240604_1720__jira4474.sql new file mode 100644 index 000000000..79afe5378 --- /dev/null +++ b/src/db/migration/V20240604_1720__jira4474.sql @@ -0,0 +1,15 @@ +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 (FUNCIONSISTEMA_ID, SISTEMA_ID, NOMBFUNCION, DESCRUTA, ACTIVO, FECMODIF, USUARIO_ID) + VALUES (FUNCION_SISTEMA_SEQ.nextVal, 1, ''ADM > CATALOGO > PUNTO VENTA > HABILITA ABA RECOLECCION'', + ''COM.RJCONSULTORES.ADMINISTRACION.PUNTOVENTA.RECOLECCION'', 1, SYSDATE, 1)'; + exception + when dup_val_on_index then null; + when except_02291 then null; +end; \ No newline at end of file