From 74fb4ec3e3ada11dd05611758f384e844085a196 Mon Sep 17 00:00:00 2001 From: "valdir.cordeiro" Date: Thu, 21 Mar 2024 15:19:36 -0300 Subject: [PATCH] bug#al-3853 ESP02-2024_MR_Numero do beneficiario v3 dev: qua: --- pom.xml | 2 +- src/db/migration/V20240319_0910__AL3853.sql | 38 +++++++++++++++++++++ 2 files changed, 39 insertions(+), 1 deletion(-) create mode 100644 src/db/migration/V20240319_0910__AL3853.sql diff --git a/pom.xml b/pom.xml index 2a1a10098..ecf463b1e 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ 4.0.0 br.com.rjconsultores Flyway - 1.34.0 + 1.35.0 diff --git a/src/db/migration/V20240319_0910__AL3853.sql b/src/db/migration/V20240319_0910__AL3853.sql new file mode 100644 index 000000000..f7467d940 --- /dev/null +++ b/src/db/migration/V20240319_0910__AL3853.sql @@ -0,0 +1,38 @@ +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 TIPO_IDENTIFICACION values ( 28 , ''D_FISICO'', 1 , CURRENT_DATE, 1)'; + exception + when dup_val_on_index then null; + when except_02291 then null; +end; +/ +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 TIPO_IDENTIFICACION values ( 29 , ''J_CARENTE'', 1 , CURRENT_DATE, 1)'; + exception + when dup_val_on_index then null; + when except_02291 then null; +end; +/ +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 TIPO_IDENTIFICACION values ( 30 , ''GRATUIDADE'', 1 , CURRENT_DATE, 1)'; + exception + when dup_val_on_index then null; + when except_02291 then null; +end; \ No newline at end of file