From 23b75b0a227e850c52ffdced3b7fe94e9ae95fe3 Mon Sep 17 00:00:00 2001 From: Leonardo Oliveira Date: Thu, 27 Jun 2024 12:11:51 -0300 Subject: [PATCH] Adicionada constante no banco --- src/db/migration/V20240614_1757__AL-4281.sql | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 src/db/migration/V20240614_1757__AL-4281.sql diff --git a/src/db/migration/V20240614_1757__AL-4281.sql b/src/db/migration/V20240614_1757__AL-4281.sql new file mode 100644 index 000000000..8a5ef9888 --- /dev/null +++ b/src/db/migration/V20240614_1757__AL-4281.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 CONSTANTE (CONSTANTE_ID,NOMBCONSTANTE,DESCCONSTANTE,INDTIPOCONSTANTE, + VALORCONSTANTE,INDMANTENIMIENTOUSUARIO,ACTIVO,FECMODIF,USUARIO_ID) + values (CONSTANTE_SEQ.NEXTVAL,''NUM_ASIENTO_CON_LETRA'',''NUM_ASIENTO_CON_LETRA'', + null,0,null,''1'',sysdate,''1'')'; + exception + when dup_val_on_index then null; + when except_02291 then null; +end; \ No newline at end of file