diff --git a/pom.xml b/pom.xml
index b176e8b7d..543a2fad7 100644
--- a/pom.xml
+++ b/pom.xml
@@ -4,7 +4,7 @@
4.0.0
br.com.rjconsultores
Flyway
- 1.11.0
+ 1.12.0
diff --git a/src/db/migration/V20230915_1809__AL2859.sql b/src/db/migration/V20230915_1809__AL2859.sql
new file mode 100644
index 000000000..43f39a183
--- /dev/null
+++ b/src/db/migration/V20230915_1809__AL2859.sql
@@ -0,0 +1,14 @@
+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 >> RELATORIO VENDAS DE BILHTE POR EMPRESA AUTORIZADORA'',
+ ''COM.RJCONSULTORES.ADMINISTRACION.GUI.RELATORIOS.MENU.RELATORIOVENDABILHETEPOREMPRESAAUTORIZADO'', 1, SYSDATE, 1)';
+ exception
+ when dup_val_on_index then null;
+ when except_02291 then null;
+end;
diff --git a/src/db/migration/V20230918_1827__AL-2765.sql b/src/db/migration/V20230918_1827__AL-2765.sql
new file mode 100644
index 000000000..0274fb563
--- /dev/null
+++ b/src/db/migration/V20230918_1827__AL-2765.sql
@@ -0,0 +1,46 @@
+declare
+ object_exists exception;
+ except_02275 exception;
+ except_02270 exception;
+ except_02261 exception;
+ except_02260 exception;
+
+ pragma exception_init (object_exists , -01430);
+ pragma exception_init (except_02275 , -02275);
+ pragma exception_init (except_02270 , -02270);
+ pragma exception_init (except_02261 , -02261);
+ pragma exception_init (except_02260 , -02260);
+begin
+ execute immediate 'ALTER TABLE ORGAO_COMPROVANTECUSTOMIZADO
+ ADD CONSTRAINT "PK_ORGAO_COMPROVANTECUSTOMIZADO" PRIMARY KEY ("ORGAOCOMPROVANTECUSTOMIZADO_ID")';
+ exception
+ when object_exists then null;
+ when except_02275 then null;
+ when except_02270 then null;
+ when except_02261 then null;
+ when except_02260 then null;
+end;
+/
+declare
+ object_exists exception;
+ except_02275 exception;
+ except_02270 exception;
+ except_02261 exception;
+ except_02260 exception;
+
+ pragma exception_init (object_exists , -01430);
+ pragma exception_init (except_02275 , -02275);
+ pragma exception_init (except_02270 , -02270);
+ pragma exception_init (except_02261 , -02261);
+ pragma exception_init (except_02260 , -02260);
+begin
+ execute immediate 'ALTER TABLE ORGAO_COMPROVANTECUSTOMIZADO
+ ADD CONSTRAINT "FK_COMPROVANTE_ORGAOCONCEDENTE" FOREIGN KEY (ORGAOCONCEDENTE_ID)
+ REFERENCES ORGAO_CONCEDENTE (ORGAOCONCEDENTE_ID)';
+ exception
+ when object_exists then null;
+ when except_02275 then null;
+ when except_02270 then null;
+ when except_02261 then null;
+ when except_02260 then null;
+end;
\ No newline at end of file