From 9cd85717d904f559523538bcf46d55b851b3d31d Mon Sep 17 00:00:00 2001 From: "gleison.cruz" Date: Mon, 19 Dec 2022 10:14:54 -0300 Subject: [PATCH] bug#AL-1626 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Novo relatório Sie (Deter) --- pom.xml | 2 +- src/db/migration/V20221912_0800__AL1626.sql | 15 +++++++++++++++ .../migration/V20221912_0800__AL1626.sql | 15 +++++++++++++++ 3 files changed, 31 insertions(+), 1 deletion(-) create mode 100644 src/db/migration/V20221912_0800__AL1626.sql create mode 100644 src/db/postgresql/migration/V20221912_0800__AL1626.sql diff --git a/pom.xml b/pom.xml index 13504c77c..f78ffbe79 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ 4.0.0 br.com.rjconsultores Flyway - 1.0.4 + 1.0.5 diff --git a/src/db/migration/V20221912_0800__AL1626.sql b/src/db/migration/V20221912_0800__AL1626.sql new file mode 100644 index 000000000..7ad26b429 --- /dev/null +++ b/src/db/migration/V20221912_0800__AL1626.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 > RELATORIOS > INTEGRACAO > SIE'',''COM.RJCONSULTORES.ADMINISTRACION.GUI.RELATORIOS.MENU.RELATORIOSIE'',1,sysdate,1)'; + + exception + when dup_val_on_index then null; + when except_02291 then null; +end; \ No newline at end of file diff --git a/src/db/postgresql/migration/V20221912_0800__AL1626.sql b/src/db/postgresql/migration/V20221912_0800__AL1626.sql new file mode 100644 index 000000000..7ad26b429 --- /dev/null +++ b/src/db/postgresql/migration/V20221912_0800__AL1626.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 > RELATORIOS > INTEGRACAO > SIE'',''COM.RJCONSULTORES.ADMINISTRACION.GUI.RELATORIOS.MENU.RELATORIOSIE'',1,sysdate,1)'; + + exception + when dup_val_on_index then null; + when except_02291 then null; +end; \ No newline at end of file