Merge pull request 'fixes bug#AL-2859' (!68) from AL-2859 into master

Reviewed-on: http://18.235.188.113:3000/utilidades/Flyway/pulls/68
Reviewed-by: fabio <fabio.faria@rjconsultores.com.br>
master
aristides 2023-09-21 21:21:25 +00:00
commit d5c712dac3
3 changed files with 61 additions and 1 deletions

View File

@ -4,7 +4,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>br.com.rjconsultores</groupId>
<artifactId>Flyway</artifactId>
<version>1.11.0</version>
<version>1.12.0</version>
<distributionManagement>
<repository>

View File

@ -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;

View File

@ -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;