From 17d8e1b5a5682ad0e65c75ada475c11157805cae Mon Sep 17 00:00:00 2001 From: Fabio Date: Wed, 3 Jul 2024 18:27:44 -0300 Subject: [PATCH] Usuario representante do contrato feat bug#AL-4278 --- pom.xml | 2 +- src/db/migration/V20240702_1820__AL-4278.sql | 13 +++++++++++++ 2 files changed, 14 insertions(+), 1 deletion(-) create mode 100644 src/db/migration/V20240702_1820__AL-4278.sql diff --git a/pom.xml b/pom.xml index aedfe23f1..fc3ee69c7 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ 4.0.0 br.com.rjconsultores Flyway - 1.57.0 + 1.58.0 diff --git a/src/db/migration/V20240702_1820__AL-4278.sql b/src/db/migration/V20240702_1820__AL-4278.sql new file mode 100644 index 000000000..914634bb5 --- /dev/null +++ b/src/db/migration/V20240702_1820__AL-4278.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 PERFIL (PERFIL_ID,DESCPERFIL,ACTIVO,FECMODIF,USUARIO_ID,INDJERARQUIA) + values (''32'',''ADM CONTRATO'',''1'',sysdate,''1'',''0'')'; + exception + when dup_val_on_index then null; + when except_02291 then null; +end; \ No newline at end of file